@@ -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(
@@ -848,7 +851,6 @@ impl Drop for Dir {
848
851
target_os = "vita" ,
849
852
target_os = "hurd" ,
850
853
target_os = "espidf" ,
851
- target_os = "fuchsia" ,
852
854
target_os = "horizon" ,
853
855
target_os = "vxworks" ,
854
856
target_os = "rtems" ,
@@ -880,6 +882,7 @@ impl DirEntry {
880
882
any(
881
883
all( target_os = "linux" , not( target_env = "musl" ) ) ,
882
884
target_os = "android" ,
885
+ target_os = "fuchsia" ,
883
886
target_os = "hurd"
884
887
) ,
885
888
not( miri) // no dirfd on Miri
@@ -908,6 +911,7 @@ impl DirEntry {
908
911
not( any(
909
912
all( target_os = "linux" , not( target_env = "musl" ) ) ,
910
913
target_os = "android" ,
914
+ target_os = "fuchsia" ,
911
915
target_os = "hurd" ,
912
916
) ) ,
913
917
miri
@@ -1211,6 +1215,7 @@ impl File {
1211
1215
}
1212
1216
#[ cfg( any(
1213
1217
target_os = "freebsd" ,
1218
+ target_os = "fuchsia" ,
1214
1219
target_os = "linux" ,
1215
1220
target_os = "android" ,
1216
1221
target_os = "netbsd" ,
@@ -1223,6 +1228,7 @@ impl File {
1223
1228
}
1224
1229
#[ cfg( not( any(
1225
1230
target_os = "android" ,
1231
+ target_os = "fuchsia" ,
1226
1232
target_os = "freebsd" ,
1227
1233
target_os = "linux" ,
1228
1234
target_os = "netbsd" ,
@@ -1238,6 +1244,7 @@ impl File {
1238
1244
1239
1245
#[ cfg( any(
1240
1246
target_os = "freebsd" ,
1247
+ target_os = "fuchsia" ,
1241
1248
target_os = "linux" ,
1242
1249
target_os = "netbsd" ,
1243
1250
target_vendor = "apple" ,
@@ -1249,6 +1256,7 @@ impl File {
1249
1256
1250
1257
#[ cfg( not( any(
1251
1258
target_os = "freebsd" ,
1259
+ target_os = "fuchsia" ,
1252
1260
target_os = "linux" ,
1253
1261
target_os = "netbsd" ,
1254
1262
target_vendor = "apple" ,
@@ -1259,6 +1267,7 @@ impl File {
1259
1267
1260
1268
#[ cfg( any(
1261
1269
target_os = "freebsd" ,
1270
+ target_os = "fuchsia" ,
1262
1271
target_os = "linux" ,
1263
1272
target_os = "netbsd" ,
1264
1273
target_vendor = "apple" ,
@@ -1270,6 +1279,7 @@ impl File {
1270
1279
1271
1280
#[ cfg( not( any(
1272
1281
target_os = "freebsd" ,
1282
+ target_os = "fuchsia" ,
1273
1283
target_os = "linux" ,
1274
1284
target_os = "netbsd" ,
1275
1285
target_vendor = "apple" ,
@@ -1280,6 +1290,7 @@ impl File {
1280
1290
1281
1291
#[ cfg( any(
1282
1292
target_os = "freebsd" ,
1293
+ target_os = "fuchsia" ,
1283
1294
target_os = "linux" ,
1284
1295
target_os = "netbsd" ,
1285
1296
target_vendor = "apple" ,
@@ -1297,6 +1308,7 @@ impl File {
1297
1308
1298
1309
#[ cfg( not( any(
1299
1310
target_os = "freebsd" ,
1311
+ target_os = "fuchsia" ,
1300
1312
target_os = "linux" ,
1301
1313
target_os = "netbsd" ,
1302
1314
target_vendor = "apple" ,
@@ -1307,6 +1319,7 @@ impl File {
1307
1319
1308
1320
#[ cfg( any(
1309
1321
target_os = "freebsd" ,
1322
+ target_os = "fuchsia" ,
1310
1323
target_os = "linux" ,
1311
1324
target_os = "netbsd" ,
1312
1325
target_vendor = "apple" ,
@@ -1324,6 +1337,7 @@ impl File {
1324
1337
1325
1338
#[ cfg( not( any(
1326
1339
target_os = "freebsd" ,
1340
+ target_os = "fuchsia" ,
1327
1341
target_os = "linux" ,
1328
1342
target_os = "netbsd" ,
1329
1343
target_vendor = "apple" ,
@@ -1334,6 +1348,7 @@ impl File {
1334
1348
1335
1349
#[ cfg( any(
1336
1350
target_os = "freebsd" ,
1351
+ target_os = "fuchsia" ,
1337
1352
target_os = "linux" ,
1338
1353
target_os = "netbsd" ,
1339
1354
target_vendor = "apple" ,
@@ -1345,6 +1360,7 @@ impl File {
1345
1360
1346
1361
#[ cfg( not( any(
1347
1362
target_os = "freebsd" ,
1363
+ target_os = "fuchsia" ,
1348
1364
target_os = "linux" ,
1349
1365
target_os = "netbsd" ,
1350
1366
target_vendor = "apple" ,
0 commit comments