Skip to content

Commit

Permalink
Merge #1823
Browse files Browse the repository at this point in the history
1823: Support AIX operating system r=asomers a=ecnelises



Co-authored-by: Qiu Chaofan <qcf@ecnelises.com>
  • Loading branch information
bors[bot] and ecnelises committed Aug 6, 2023
2 parents 78a4d9e + 8345f3e commit 53b0332
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 @@ -224,7 +224,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 @@ -253,6 +254,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 @@ -270,6 +272,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 53b0332

Please sign in to comment.