@@ -9,9 +9,12 @@ use libc::c_char;
9
9
#[ cfg( any(
10
10
all( target_os = "linux" , not( target_env = "musl" ) ) ,
11
11
target_os = "android" ,
12
+ target_os = "fuchsia" ,
12
13
target_os = "hurd"
13
14
) ) ]
14
15
use libc:: dirfd;
16
+ #[ cfg( target_os = "fuchsia" ) ]
17
+ use libc:: fstatat as fstatat64;
15
18
#[ cfg( any( all( target_os = "linux" , not( target_env = "musl" ) ) , target_os = "hurd" ) ) ]
16
19
use libc:: fstatat64;
17
20
#[ cfg( any(
@@ -850,7 +853,6 @@ impl Drop for Dir {
850
853
target_os = "vita" ,
851
854
target_os = "hurd" ,
852
855
target_os = "espidf" ,
853
- target_os = "fuchsia" ,
854
856
target_os = "horizon" ,
855
857
target_os = "vxworks" ,
856
858
target_os = "rtems" ,
@@ -882,6 +884,7 @@ impl DirEntry {
882
884
any(
883
885
all( target_os = "linux" , not( target_env = "musl" ) ) ,
884
886
target_os = "android" ,
887
+ target_os = "fuchsia" ,
885
888
target_os = "hurd"
886
889
) ,
887
890
not( miri) // no dirfd on Miri
@@ -910,6 +913,7 @@ impl DirEntry {
910
913
not( any(
911
914
all( target_os = "linux" , not( target_env = "musl" ) ) ,
912
915
target_os = "android" ,
916
+ target_os = "fuchsia" ,
913
917
target_os = "hurd" ,
914
918
) ) ,
915
919
miri
@@ -1213,6 +1217,7 @@ impl File {
1213
1217
}
1214
1218
#[ cfg( any(
1215
1219
target_os = "freebsd" ,
1220
+ target_os = "fuchsia" ,
1216
1221
target_os = "linux" ,
1217
1222
target_os = "android" ,
1218
1223
target_os = "netbsd" ,
@@ -1225,6 +1230,7 @@ impl File {
1225
1230
}
1226
1231
#[ cfg( not( any(
1227
1232
target_os = "android" ,
1233
+ target_os = "fuchsia" ,
1228
1234
target_os = "freebsd" ,
1229
1235
target_os = "linux" ,
1230
1236
target_os = "netbsd" ,
@@ -1240,6 +1246,7 @@ impl File {
1240
1246
1241
1247
#[ cfg( any(
1242
1248
target_os = "freebsd" ,
1249
+ target_os = "fuchsia" ,
1243
1250
target_os = "linux" ,
1244
1251
target_os = "netbsd" ,
1245
1252
target_vendor = "apple" ,
@@ -1251,6 +1258,7 @@ impl File {
1251
1258
1252
1259
#[ cfg( not( any(
1253
1260
target_os = "freebsd" ,
1261
+ target_os = "fuchsia" ,
1254
1262
target_os = "linux" ,
1255
1263
target_os = "netbsd" ,
1256
1264
target_vendor = "apple" ,
@@ -1261,6 +1269,7 @@ impl File {
1261
1269
1262
1270
#[ cfg( any(
1263
1271
target_os = "freebsd" ,
1272
+ target_os = "fuchsia" ,
1264
1273
target_os = "linux" ,
1265
1274
target_os = "netbsd" ,
1266
1275
target_vendor = "apple" ,
@@ -1272,6 +1281,7 @@ impl File {
1272
1281
1273
1282
#[ cfg( not( any(
1274
1283
target_os = "freebsd" ,
1284
+ target_os = "fuchsia" ,
1275
1285
target_os = "linux" ,
1276
1286
target_os = "netbsd" ,
1277
1287
target_vendor = "apple" ,
@@ -1282,6 +1292,7 @@ impl File {
1282
1292
1283
1293
#[ cfg( any(
1284
1294
target_os = "freebsd" ,
1295
+ target_os = "fuchsia" ,
1285
1296
target_os = "linux" ,
1286
1297
target_os = "netbsd" ,
1287
1298
target_vendor = "apple" ,
@@ -1299,6 +1310,7 @@ impl File {
1299
1310
1300
1311
#[ cfg( not( any(
1301
1312
target_os = "freebsd" ,
1313
+ target_os = "fuchsia" ,
1302
1314
target_os = "linux" ,
1303
1315
target_os = "netbsd" ,
1304
1316
target_vendor = "apple" ,
@@ -1309,6 +1321,7 @@ impl File {
1309
1321
1310
1322
#[ cfg( any(
1311
1323
target_os = "freebsd" ,
1324
+ target_os = "fuchsia" ,
1312
1325
target_os = "linux" ,
1313
1326
target_os = "netbsd" ,
1314
1327
target_vendor = "apple" ,
@@ -1326,6 +1339,7 @@ impl File {
1326
1339
1327
1340
#[ cfg( not( any(
1328
1341
target_os = "freebsd" ,
1342
+ target_os = "fuchsia" ,
1329
1343
target_os = "linux" ,
1330
1344
target_os = "netbsd" ,
1331
1345
target_vendor = "apple" ,
@@ -1336,6 +1350,7 @@ impl File {
1336
1350
1337
1351
#[ cfg( any(
1338
1352
target_os = "freebsd" ,
1353
+ target_os = "fuchsia" ,
1339
1354
target_os = "linux" ,
1340
1355
target_os = "netbsd" ,
1341
1356
target_vendor = "apple" ,
@@ -1347,6 +1362,7 @@ impl File {
1347
1362
1348
1363
#[ cfg( not( any(
1349
1364
target_os = "freebsd" ,
1365
+ target_os = "fuchsia" ,
1350
1366
target_os = "linux" ,
1351
1367
target_os = "netbsd" ,
1352
1368
target_vendor = "apple" ,
0 commit comments