@@ -14,7 +14,7 @@ use std::mem;
1414use std:: net:: { TcpListener , TcpStream , UdpSocket } ;
1515use std:: os:: unix:: io:: FromRawFd ;
1616use libc:: { self , c_int} ;
17- #[ cfg( not( any( target_os = "solaris " , target_os = "illumos" , target_os = "emscripten " ) ) ) ]
17+ #[ cfg( not( any( target_os = "emscripten " , target_os = "haiku" , target_os = " illumos", target_os = "solaris " ) ) ) ]
1818use libc:: { ioctl, FIOCLEX } ;
1919
2020mod impls;
@@ -36,7 +36,7 @@ pub struct Socket {
3636}
3737
3838impl Socket {
39- #[ cfg( not( any( target_os = "solaris " , target_os = "illumos" , target_os = "emscripten " ) ) ) ]
39+ #[ cfg( not( any( target_os = "emscripten " , target_os = "haiku" , target_os = " illumos", target_os = "solaris " ) ) ) ]
4040 pub fn new ( family : c_int , ty : c_int ) -> io:: Result < Socket > {
4141 unsafe {
4242 // Linux >2.6.26 overloads the type argument to accept SOCK_CLOEXEC,
@@ -58,7 +58,7 @@ impl Socket {
5858
5959 // ioctl(FIOCLEX) is not supported by Solaris/illumos or emscripten,
6060 // use fcntl(FD_CLOEXEC) instead
61- #[ cfg( any( target_os = "solaris " , target_os = "illumos" , target_os = "emscripten " ) ) ]
61+ #[ cfg( any( target_os = "emscripten " , target_os = "haiku" , target_os = " illumos", target_os = "solaris " ) ) ]
6262 pub fn new ( family : c_int , ty : c_int ) -> io:: Result < Socket > {
6363 unsafe {
6464 let fd = try!( :: cvt ( libc:: socket ( family, ty, 0 ) ) ) ;
0 commit comments