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 {
144
144
}
145
145
}
146
146
147
- #[ cfg( not( any( target_os = "freertos" , target_os = "vxworks" ) ) ]
147
+ #[ cfg( not( any( target_os = "freertos" , target_os = "vxworks" ) ) ) ]
148
148
pub fn new_pair ( fam : c_int , ty : c_int ) -> io:: Result < ( Socket , Socket ) > {
149
149
unsafe {
150
150
let mut fds = [ 0 , 0 ] ;
@@ -174,7 +174,7 @@ impl Socket {
174
174
}
175
175
}
176
176
177
- #[ cfg( target_os = "vxworks" ) ]
177
+ #[ cfg( any ( target_os = "freertos" , target_os = " vxworks") ) ]
178
178
pub fn new_pair ( _fam : c_int , _ty : c_int ) -> io:: Result < ( Socket , Socket ) > {
179
179
unimplemented ! ( )
180
180
}
@@ -263,7 +263,7 @@ impl Socket {
263
263
let fd = cvt_r( || unsafe {
264
264
netc:: accept4( self . 0 . raw( ) , storage, len, netc:: SOCK_CLOEXEC )
265
265
} ) ?;
266
- Ok ( Socket ( FileDesc :: new( fd) ) )
266
+ Ok ( Socket ( NetFileDesc :: new( fd) ) )
267
267
// While the Android kernel supports the syscall,
268
268
// it is not included in all versions of Android's libc.
269
269
} else if #[ cfg( target_os = "android" ) ] {
You can’t perform that action at this time.
0 commit comments