File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ impl Socket {
144144 }
145145 }
146146
147- #[ cfg( not( any( target_os = "freertos" , target_os = "vxworks" ) ) ]
147+ #[ cfg( not( any( target_os = "freertos" , target_os = "vxworks" ) ) ) ]
148148 pub fn new_pair ( fam : c_int , ty : c_int ) -> io:: Result < ( Socket , Socket ) > {
149149 unsafe {
150150 let mut fds = [ 0 , 0 ] ;
@@ -174,7 +174,7 @@ impl Socket {
174174 }
175175 }
176176
177- #[ cfg( target_os = "vxworks" ) ]
177+ #[ cfg( any ( target_os = "freertos" , target_os = " vxworks") ) ]
178178 pub fn new_pair ( _fam : c_int , _ty : c_int ) -> io:: Result < ( Socket , Socket ) > {
179179 unimplemented ! ( )
180180 }
@@ -263,7 +263,7 @@ impl Socket {
263263 let fd = cvt_r( || unsafe {
264264 netc:: accept4( self . 0 . raw( ) , storage, len, netc:: SOCK_CLOEXEC )
265265 } ) ?;
266- Ok ( Socket ( FileDesc :: new( fd) ) )
266+ Ok ( Socket ( NetFileDesc :: new( fd) ) )
267267 // While the Android kernel supports the syscall,
268268 // it is not included in all versions of Android's libc.
269269 } else if #[ cfg( target_os = "android" ) ] {
You can’t perform that action at this time.
0 commit comments