@@ -15,7 +15,10 @@ pub type off_t = i64;
1515pub type pthread_t = :: c_ulong ;
1616pub type pthread_key_t = :: c_uint ;
1717pub type rlim_t = u32 ;
18+ #[ cfg( not( target_os = "horizon" ) ) ]
1819pub type sa_family_t = u8 ;
20+ #[ cfg( target_os = "horizon" ) ]
21+ pub type sa_family_t = u16 ;
1922pub type socklen_t = u32 ;
2023pub type speed_t = u32 ;
2124pub type suseconds_t = i32 ;
@@ -477,7 +480,10 @@ pub const SO_SNDLOWAT: ::c_int = 0x1003;
477480pub const SO_RCVLOWAT : :: c_int = 0x1004 ;
478481pub const SO_SNDTIMEO : :: c_int = 0x1005 ;
479482pub const SO_RCVTIMEO : :: c_int = 0x1006 ;
483+ #[ cfg( not( target_os = "horizon" ) ) ]
480484pub const SO_ERROR : :: c_int = 0x1007 ;
485+ #[ cfg( target_os = "horizon" ) ]
486+ pub const SO_ERROR : :: c_int = 0x1009 ;
481487pub const SO_TYPE : :: c_int = 0x1008 ;
482488
483489pub const SOCK_CLOEXEC : :: c_int = O_CLOEXEC ;
@@ -512,7 +518,10 @@ pub const TCP_KEEPIDLE: ::c_int = 256;
512518pub const TCP_KEEPINTVL : :: c_int = 512 ;
513519pub const TCP_KEEPCNT : :: c_int = 1024 ;
514520
521+ #[ cfg( not( target_os = "horizon" ) ) ]
515522pub const IP_TOS : :: c_int = 3 ;
523+ #[ cfg( target_os = "horizon" ) ]
524+ pub const IP_TOS : :: c_int = 7 ;
516525pub const IP_TTL : :: c_int = 8 ;
517526pub const IP_MULTICAST_IF : :: c_int = 9 ;
518527pub const IP_MULTICAST_TTL : :: c_int = 10 ;
0 commit comments