File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -380,10 +380,16 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
380
380
/// See [`Socket::set_tcp_keepalive`].
381
381
#[ derive( Debug , Clone ) ]
382
382
pub struct TcpKeepalive {
383
+ #[ cfg_attr( target_os = "openbsd" , allow( dead_code) ) ]
383
384
time : Option < Duration > ,
384
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" ) ) ) ]
385
+ #[ cfg( not( any( target_os = "openbsd" , target_os = " redox", target_os = "solaris" ) ) ) ]
385
386
interval : Option < Duration > ,
386
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
387
+ #[ cfg( not( any(
388
+ target_os = "openbsd" ,
389
+ target_os = "redox" ,
390
+ target_os = "solaris" ,
391
+ target_os = "windows"
392
+ ) ) ) ]
387
393
retries : Option < u32 > ,
388
394
}
389
395
@@ -392,9 +398,14 @@ impl TcpKeepalive {
392
398
pub const fn new ( ) -> TcpKeepalive {
393
399
TcpKeepalive {
394
400
time : None ,
395
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" ) ) ) ]
401
+ #[ cfg( not( any( target_os = "openbsd" , target_os = " redox", target_os = "solaris" ) ) ) ]
396
402
interval : None ,
397
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
403
+ #[ cfg( not( any(
404
+ target_os = "openbsd" ,
405
+ target_os = "redox" ,
406
+ target_os = "solaris" ,
407
+ target_os = "windows"
408
+ ) ) ) ]
398
409
retries : None ,
399
410
}
400
411
}
You can’t perform that action at this time.
0 commit comments