File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ impl Socket {
261
261
let fd = syscall ! ( socket( family, ty, protocol) ) ?;
262
262
let fd = unsafe { Socket :: from_raw_fd ( fd) } ;
263
263
set_cloexec ( fd. as_raw_fd ( ) ) ?;
264
- #[ cfg( target_os = "macos" ) ]
264
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
265
265
unsafe {
266
266
fd. setsockopt ( libc:: SOL_SOCKET , libc:: SO_NOSIGPIPE , 1i32 ) ?;
267
267
}
@@ -274,7 +274,7 @@ impl Socket {
274
274
let fds = unsafe { ( Socket :: from_raw_fd ( fds[ 0 ] ) , Socket :: from_raw_fd ( fds[ 1 ] ) ) } ;
275
275
set_cloexec ( fds. 0 . as_raw_fd ( ) ) ?;
276
276
set_cloexec ( fds. 1 . as_raw_fd ( ) ) ?;
277
- #[ cfg( target_os = "macos" ) ]
277
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
278
278
unsafe {
279
279
fds. 0
280
280
. setsockopt ( libc:: SOL_SOCKET , libc:: SO_NOSIGPIPE , 1i32 ) ?;
You can’t perform that action at this time.
0 commit comments