Skip to content

Commit

Permalink
std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
Browse files Browse the repository at this point in the history
Align it with musl, which also prefers using lstat() here.
  • Loading branch information
kleisauke committed Dec 9, 2024
1 parent 08644b7 commit 439464c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/std/src/sys/pal/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ mod tests;
use libc::c_char;
#[cfg(any(
all(target_os = "linux", not(target_env = "musl")),
target_os = "emscripten",
target_os = "android",
target_os = "hurd"
))]
use libc::dirfd;
#[cfg(any(
all(target_os = "linux", not(target_env = "musl")),
target_os = "emscripten",
target_os = "hurd"
))]
use libc::fstatat64;
Expand Down Expand Up @@ -893,7 +891,6 @@ impl DirEntry {
#[cfg(all(
any(
all(target_os = "linux", not(target_env = "musl")),
target_os = "emscripten",
target_os = "android",
target_os = "hurd"
),
Expand Down Expand Up @@ -922,7 +919,6 @@ impl DirEntry {
#[cfg(any(
not(any(
all(target_os = "linux", not(target_env = "musl")),
target_os = "emscripten",
target_os = "android",
target_os = "hurd",
)),
Expand Down

0 comments on commit 439464c

Please sign in to comment.