summaryrefslogtreecommitdiff
path: root/src/dir.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.rs')
-rw-r--r--src/dir.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dir.rs b/src/dir.rs
index 396b54fb..c9b5af8f 100644
--- a/src/dir.rs
+++ b/src/dir.rs
@@ -226,7 +226,7 @@ impl Entry {
/// notably, some Linux filesystems don't implement this. The caller should use `stat` or
/// `fstat` if this returns `None`.
pub fn file_type(&self) -> Option<Type> {
- #[cfg(not(any(target_os = "illumos", target_os = "solaris")))]
+ #[cfg(not(any(target_os = "illumos", target_os = "solaris", target_os = "haiku")))]
match self.0.d_type {
libc::DT_FIFO => Some(Type::Fifo),
libc::DT_CHR => Some(Type::CharacterDevice),
@@ -238,8 +238,8 @@ impl Entry {
/* libc::DT_UNKNOWN | */ _ => None,
}
- // illumos and Solaris systems do not have the d_type member at all:
- #[cfg(any(target_os = "illumos", target_os = "solaris"))]
+ // illumos, Solaris, and Haiku systems do not have the d_type member at all:
+ #[cfg(any(target_os = "illumos", target_os = "solaris", target_os = "haiku"))]
None
}
}