Better fix for Fuchsia
This commit is contained in:
parent
68976d1ac1
commit
1c63ec48b8
1 changed files with 2 additions and 9 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue