File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -1240,7 +1240,14 @@ impl fmt::Debug for File {
1240
1240
None
1241
1241
}
1242
1242
1243
- #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "vxworks" ) ) ]
1243
+ #[ cfg( any(
1244
+ target_os = "linux" ,
1245
+ target_os = "macos" ,
1246
+ target_os = "freebsd" ,
1247
+ target_os = "netbsd" ,
1248
+ target_os = "openbsd" ,
1249
+ target_os = "vxworks"
1250
+ ) ) ]
1244
1251
fn get_mode ( fd : c_int ) -> Option < ( bool , bool ) > {
1245
1252
let mode = unsafe { libc:: fcntl ( fd, libc:: F_GETFL ) } ;
1246
1253
if mode == -1 {
@@ -1254,7 +1261,14 @@ impl fmt::Debug for File {
1254
1261
}
1255
1262
}
1256
1263
1257
- #[ cfg( not( any( target_os = "linux" , target_os = "macos" , target_os = "vxworks" ) ) ) ]
1264
+ #[ cfg( not( any(
1265
+ target_os = "linux" ,
1266
+ target_os = "macos" ,
1267
+ target_os = "freebsd" ,
1268
+ target_os = "netbsd" ,
1269
+ target_os = "openbsd" ,
1270
+ target_os = "vxworks"
1271
+ ) ) ) ]
1258
1272
fn get_mode ( _fd : c_int ) -> Option < ( bool , bool ) > {
1259
1273
// FIXME(#24570): implement this for other Unix platforms
1260
1274
None
You can’t perform that action at this time.
0 commit comments