diff options
| author | Kleis Auke Wolthuizen <github@kleisauke.nl> | 2024-12-09 15:09:34 +0100 |
|---|---|---|
| committer | Kleis Auke Wolthuizen <github@kleisauke.nl> | 2025-01-01 13:21:19 +0100 |
| commit | b6af0c483672e87a815755beec57f0e30cc4a84f (patch) | |
| tree | 93191efd5e319629416a4b16fc11c086be05a5cf /library/std/src/sys | |
| parent | ef58e8b989a4c191c08005b7a8ce12f8ef697a43 (diff) | |
| download | rust-b6af0c483672e87a815755beec57f0e30cc4a84f.tar.gz rust-b6af0c483672e87a815755beec57f0e30cc4a84f.zip | |
std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
Align it with musl, which also prefers using lstat() here.
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/unix/fs.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs index 63c27728ca4..54fa31620ac 100644 --- a/library/std/src/sys/pal/unix/fs.rs +++ b/library/std/src/sys/pal/unix/fs.rs @@ -8,16 +8,11 @@ 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" -))] +#[cfg(any(all(target_os = "linux", not(target_env = "musl")), target_os = "hurd"))] use libc::fstatat64; #[cfg(any( target_os = "android", @@ -896,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" ), @@ -925,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", )), |
