Better fix for Fuchsia

This commit is contained in:
Hans Kratz 2022-01-20 13:32:57 +01:00 committed by Pietro Albini
parent 68976d1ac1
commit 1c63ec48b8
No known key found for this signature in database
GPG key ID: CD76B35F7734769E

View file

@ -1628,20 +1628,13 @@ mod remove_dir_impl {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "fuchsia"
))]
fn is_dir(_ent: &DirEntry) -> Option<bool> {
None
}
#[cfg(target_os = "fuchsia")]
fn is_dir(ent: &DirEntry) -> Option<bool> {
match ent.entry.d_type {
libc::DT_DIR => Some(true),
_ => Some(false),
}
}
#[cfg(not(any(
target_os = "solaris",
target_os = "illumos",