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 @@ -1260,7 +1260,14 @@ impl fmt::Debug for File {
1260
1260
None
1261
1261
}
1262
1262
1263
- #[ cfg( any( target_os = "linux" , target_os = "macos" , target_os = "vxworks" ) ) ]
1263
+ #[ cfg( any(
1264
+ target_os = "linux" ,
1265
+ target_os = "macos" ,
1266
+ target_os = "freebsd" ,
1267
+ target_os = "netbsd" ,
1268
+ target_os = "openbsd" ,
1269
+ target_os = "vxworks"
1270
+ ) ) ]
1264
1271
fn get_mode ( fd : c_int ) -> Option < ( bool , bool ) > {
1265
1272
let mode = unsafe { libc:: fcntl ( fd, libc:: F_GETFL ) } ;
1266
1273
if mode == -1 {
@@ -1274,7 +1281,14 @@ impl fmt::Debug for File {
1274
1281
}
1275
1282
}
1276
1283
1277
- #[ cfg( not( any( target_os = "linux" , target_os = "macos" , target_os = "vxworks" ) ) ) ]
1284
+ #[ cfg( not( any(
1285
+ target_os = "linux" ,
1286
+ target_os = "macos" ,
1287
+ target_os = "freebsd" ,
1288
+ target_os = "netbsd" ,
1289
+ target_os = "openbsd" ,
1290
+ target_os = "vxworks"
1291
+ ) ) ) ]
1278
1292
fn get_mode ( _fd : c_int ) -> Option < ( bool , bool ) > {
1279
1293
// FIXME(#24570): implement this for other Unix platforms
1280
1294
None
You can’t perform that action at this time.
0 commit comments