File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,10 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
425425/// See [`Socket::set_tcp_keepalive`].
426426#[ derive( Debug , Clone ) ]
427427pub struct TcpKeepalive {
428- #[ cfg_attr( any( target_os = "openbsd" , target_os = "vita" ) , allow( dead_code) ) ]
428+ #[ cfg_attr(
429+ any( target_os = "openbsd" , target_os = "haiku" , target_os = "vita" ) ,
430+ allow( dead_code)
431+ ) ]
429432 time : Option < Duration > ,
430433 #[ cfg( not( any(
431434 target_os = "openbsd" ,
@@ -434,6 +437,7 @@ pub struct TcpKeepalive {
434437 target_os = "nto" ,
435438 target_os = "espidf" ,
436439 target_os = "vita" ,
440+ target_os = "haiku" ,
437441 ) ) ) ]
438442 interval : Option < Duration > ,
439443 #[ cfg( not( any(
@@ -444,6 +448,7 @@ pub struct TcpKeepalive {
444448 target_os = "nto" ,
445449 target_os = "espidf" ,
446450 target_os = "vita" ,
451+ target_os = "haiku" ,
447452 ) ) ) ]
448453 retries : Option < u32 > ,
449454}
@@ -460,6 +465,7 @@ impl TcpKeepalive {
460465 target_os = "nto" ,
461466 target_os = "espidf" ,
462467 target_os = "vita" ,
468+ target_os = "haiku" ,
463469 ) ) ) ]
464470 interval : None ,
465471 #[ cfg( not( any(
@@ -470,6 +476,7 @@ impl TcpKeepalive {
470476 target_os = "nto" ,
471477 target_os = "espidf" ,
472478 target_os = "vita" ,
479+ target_os = "haiku" ,
473480 ) ) ) ]
474481 retries : None ,
475482 }
Original file line number Diff line number Diff line change @@ -1391,6 +1391,7 @@ test!(IPv4 ttl, set_ttl(40));
13911391 target_os = "redox" ,
13921392 target_os = "solaris" ,
13931393 target_os = "illumos" ,
1394+ target_os = "haiku" ,
13941395) ) ) ]
13951396test ! ( IPv4 tos, set_tos( 96 ) ) ;
13961397
@@ -1405,6 +1406,7 @@ test!(IPv4 tos, set_tos(96));
14051406 target_os = "solaris" ,
14061407 target_os = "windows" ,
14071408 target_os = "vita" ,
1409+ target_os = "haiku" ,
14081410) ) ) ]
14091411test ! ( IPv4 recv_tos, set_recv_tos( true ) ) ;
14101412
@@ -1452,6 +1454,7 @@ test!(IPv6 tclass_v6, set_tclass_v6(96));
14521454 target_os = "solaris" ,
14531455 target_os = "windows" ,
14541456 target_os = "vita" ,
1457+ target_os = "haiku" ,
14551458) ) ) ]
14561459test ! ( IPv6 recv_tclass_v6, set_recv_tclass_v6( true ) ) ;
14571460
You can’t perform that action at this time.
0 commit comments