File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,20 @@ impl FileDesc {
59
59
Ok ( ret as usize )
60
60
}
61
61
62
- #[ cfg( not( any( target_env = "newlib" , target_os = "solaris" , target_os = "emscripten" ) ) ) ]
62
+ #[ cfg( not( any( target_env = "newlib" ,
63
+ target_os = "solaris" ,
64
+ target_os = "emscripten" ,
65
+ target_os = "haiku" ) ) ) ]
63
66
pub fn set_cloexec ( & self ) -> io:: Result < ( ) > {
64
67
unsafe {
65
68
cvt ( libc:: ioctl ( self . fd , libc:: FIOCLEX ) ) ?;
66
69
Ok ( ( ) )
67
70
}
68
71
}
69
- #[ cfg( any( target_env = "newlib" , target_os = "solaris" , target_os = "emscripten" ) ) ]
72
+ #[ cfg( any( target_env = "newlib" ,
73
+ target_os = "solaris" ,
74
+ target_os = "emscripten" ,
75
+ target_os = "haiku" ) ) ]
70
76
pub fn set_cloexec ( & self ) -> io:: Result < ( ) > {
71
77
unsafe {
72
78
let previous = cvt ( libc:: fcntl ( self . fd , libc:: F_GETFD ) ) ?;
You can’t perform that action at this time.
0 commit comments