Skip to content

Commit dbe9724

Browse files
committed
std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
Align it with musl, which also prefers using lstat() here.
1 parent 08644b7 commit dbe9724

File tree

1 file changed

+1
-8
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-8
lines changed

library/std/src/sys/pal/unix/fs.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@ mod tests;
88
use libc::c_char;
99
#[cfg(any(
1010
all(target_os = "linux", not(target_env = "musl")),
11-
target_os = "emscripten",
1211
target_os = "android",
1312
target_os = "hurd"
1413
))]
1514
use libc::dirfd;
16-
#[cfg(any(
17-
all(target_os = "linux", not(target_env = "musl")),
18-
target_os = "emscripten",
19-
target_os = "hurd"
20-
))]
15+
#[cfg(any(all(target_os = "linux", not(target_env = "musl")), target_os = "hurd"))]
2116
use libc::fstatat64;
2217
#[cfg(any(
2318
target_os = "android",
@@ -893,7 +888,6 @@ impl DirEntry {
893888
#[cfg(all(
894889
any(
895890
all(target_os = "linux", not(target_env = "musl")),
896-
target_os = "emscripten",
897891
target_os = "android",
898892
target_os = "hurd"
899893
),
@@ -922,7 +916,6 @@ impl DirEntry {
922916
#[cfg(any(
923917
not(any(
924918
all(target_os = "linux", not(target_env = "musl")),
925-
target_os = "emscripten",
926919
target_os = "android",
927920
target_os = "hurd",
928921
)),

0 commit comments

Comments
 (0)