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> {
425
425
/// See [`Socket::set_tcp_keepalive`].
426
426
#[ derive( Debug , Clone ) ]
427
427
pub 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
+ ) ]
429
432
time : Option < Duration > ,
430
433
#[ cfg( not( any(
431
434
target_os = "openbsd" ,
@@ -434,6 +437,7 @@ pub struct TcpKeepalive {
434
437
target_os = "nto" ,
435
438
target_os = "espidf" ,
436
439
target_os = "vita" ,
440
+ target_os = "haiku" ,
437
441
) ) ) ]
438
442
interval : Option < Duration > ,
439
443
#[ cfg( not( any(
@@ -444,6 +448,7 @@ pub struct TcpKeepalive {
444
448
target_os = "nto" ,
445
449
target_os = "espidf" ,
446
450
target_os = "vita" ,
451
+ target_os = "haiku" ,
447
452
) ) ) ]
448
453
retries : Option < u32 > ,
449
454
}
@@ -460,6 +465,7 @@ impl TcpKeepalive {
460
465
target_os = "nto" ,
461
466
target_os = "espidf" ,
462
467
target_os = "vita" ,
468
+ target_os = "haiku" ,
463
469
) ) ) ]
464
470
interval : None ,
465
471
#[ cfg( not( any(
@@ -470,6 +476,7 @@ impl TcpKeepalive {
470
476
target_os = "nto" ,
471
477
target_os = "espidf" ,
472
478
target_os = "vita" ,
479
+ target_os = "haiku" ,
473
480
) ) ) ]
474
481
retries : None ,
475
482
}
Original file line number Diff line number Diff line change @@ -1391,6 +1391,7 @@ test!(IPv4 ttl, set_ttl(40));
1391
1391
target_os = "redox" ,
1392
1392
target_os = "solaris" ,
1393
1393
target_os = "illumos" ,
1394
+ target_os = "haiku" ,
1394
1395
) ) ) ]
1395
1396
test ! ( IPv4 tos, set_tos( 96 ) ) ;
1396
1397
@@ -1405,6 +1406,7 @@ test!(IPv4 tos, set_tos(96));
1405
1406
target_os = "solaris" ,
1406
1407
target_os = "windows" ,
1407
1408
target_os = "vita" ,
1409
+ target_os = "haiku" ,
1408
1410
) ) ) ]
1409
1411
test ! ( IPv4 recv_tos, set_recv_tos( true ) ) ;
1410
1412
@@ -1452,6 +1454,7 @@ test!(IPv6 tclass_v6, set_tclass_v6(96));
1452
1454
target_os = "solaris" ,
1453
1455
target_os = "windows" ,
1454
1456
target_os = "vita" ,
1457
+ target_os = "haiku" ,
1455
1458
) ) ) ]
1456
1459
test ! ( IPv6 recv_tclass_v6, set_recv_tclass_v6( true ) ) ;
1457
1460
You can’t perform that action at this time.
0 commit comments