@@ -14,7 +14,7 @@ use std::mem;
14
14
use std:: net:: { TcpListener , TcpStream , UdpSocket } ;
15
15
use std:: os:: unix:: io:: FromRawFd ;
16
16
use libc:: { self , c_int} ;
17
- #[ cfg( not( any( target_os = "solaris" , target_os = "emscripten" ) ) ) ]
17
+ #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" , target_os = " emscripten") ) ) ]
18
18
use libc:: { ioctl, FIOCLEX } ;
19
19
20
20
mod impls;
@@ -36,7 +36,7 @@ pub struct Socket {
36
36
}
37
37
38
38
impl Socket {
39
- #[ cfg( not( any( target_os = "solaris" , target_os = "emscripten" ) ) ) ]
39
+ #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" , target_os = " emscripten") ) ) ]
40
40
pub fn new ( family : c_int , ty : c_int ) -> io:: Result < Socket > {
41
41
unsafe {
42
42
// Linux >2.6.26 overloads the type argument to accept SOCK_CLOEXEC,
@@ -56,9 +56,9 @@ impl Socket {
56
56
}
57
57
}
58
58
59
- // ioctl(FIOCLEX) is not supported by Solaris/Illumos or emscripten,
59
+ // ioctl(FIOCLEX) is not supported by Solaris/illumos or emscripten,
60
60
// use fcntl(FD_CLOEXEC) instead
61
- #[ cfg( any( target_os = "solaris" , target_os = "emscripten" ) ) ]
61
+ #[ cfg( any( target_os = "solaris" , target_os = "illumos" , target_os = " emscripten") ) ]
62
62
pub fn new ( family : c_int , ty : c_int ) -> io:: Result < Socket > {
63
63
unsafe {
64
64
let fd = try!( :: cvt ( libc:: socket ( family, ty, 0 ) ) ) ;
0 commit comments