@@ -15,7 +15,10 @@ pub type off_t = i64;
15
15
pub type pthread_t = :: c_ulong ;
16
16
pub type pthread_key_t = :: c_uint ;
17
17
pub type rlim_t = u32 ;
18
+ #[ cfg( not( target_os = "horizon" ) ) ]
18
19
pub type sa_family_t = u8 ;
20
+ #[ cfg( target_os = "horizon" ) ]
21
+ pub type sa_family_t = u16 ;
19
22
pub type socklen_t = u32 ;
20
23
pub type speed_t = u32 ;
21
24
pub type suseconds_t = i32 ;
@@ -477,7 +480,10 @@ pub const SO_SNDLOWAT: ::c_int = 0x1003;
477
480
pub const SO_RCVLOWAT : :: c_int = 0x1004 ;
478
481
pub const SO_SNDTIMEO : :: c_int = 0x1005 ;
479
482
pub const SO_RCVTIMEO : :: c_int = 0x1006 ;
483
+ #[ cfg( not( target_os = "horizon" ) ) ]
480
484
pub const SO_ERROR : :: c_int = 0x1007 ;
485
+ #[ cfg( target_os = "horizon" ) ]
486
+ pub const SO_ERROR : :: c_int = 0x1009 ;
481
487
pub const SO_TYPE : :: c_int = 0x1008 ;
482
488
483
489
pub const SOCK_CLOEXEC : :: c_int = O_CLOEXEC ;
@@ -512,7 +518,10 @@ pub const TCP_KEEPIDLE: ::c_int = 256;
512
518
pub const TCP_KEEPINTVL : :: c_int = 512 ;
513
519
pub const TCP_KEEPCNT : :: c_int = 1024 ;
514
520
521
+ #[ cfg( not( target_os = "horizon" ) ) ]
515
522
pub const IP_TOS : :: c_int = 3 ;
523
+ #[ cfg( target_os = "horizon" ) ]
524
+ pub const IP_TOS : :: c_int = 7 ;
516
525
pub const IP_TTL : :: c_int = 8 ;
517
526
pub const IP_MULTICAST_IF : :: c_int = 9 ;
518
527
pub const IP_MULTICAST_TTL : :: c_int = 10 ;
0 commit comments