Skip to content

Commit

Permalink
Initial support for AIX operating system
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises committed May 16, 2023
1 parent b13b7d1 commit cbe346a
Show file tree
Hide file tree
Showing 13 changed files with 362 additions and 16 deletions.
5 changes: 4 additions & 1 deletion src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ impl Entry {
#[allow(clippy::unnecessary_cast)]
pub fn ino(&self) -> u64 {
cfg_if! {
if #[cfg(any(target_os = "android",
if #[cfg(any(target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
target_os = "haiku",
Expand Down Expand Up @@ -250,6 +251,7 @@ impl Entry {
/// `fstat` if this returns `None`.
pub fn file_type(&self) -> Option<Type> {
#[cfg(not(any(
target_os = "aix",
target_os = "illumos",
target_os = "solaris",
target_os = "haiku"
Expand All @@ -267,6 +269,7 @@ impl Entry {

// illumos, Solaris, and Haiku systems do not have the d_type member at all:
#[cfg(any(
target_os = "aix",
target_os = "illumos",
target_os = "solaris",
target_os = "haiku"
Expand Down

0 comments on commit cbe346a

Please sign in to comment.