std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
Align it with musl, which also prefers using lstat() here.
This commit is contained in:
parent
ef58e8b989
commit
b6af0c4836
1 changed files with 1 additions and 8 deletions
|
@ -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",
|
||||
)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue