Skip to content

Commit 53b0332

Browse files
bors[bot]ecnelises
andauthored
Merge #1823
1823: Support AIX operating system r=asomers a=ecnelises Co-authored-by: Qiu Chaofan <qcf@ecnelises.com>
2 parents 78a4d9e + 8345f3e commit 53b0332

13 files changed

+362
-16
lines changed

src/dir.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ impl Entry {
224224
#[allow(clippy::unnecessary_cast)]
225225
pub fn ino(&self) -> u64 {
226226
cfg_if! {
227-
if #[cfg(any(target_os = "android",
227+
if #[cfg(any(target_os = "aix",
228+
target_os = "android",
228229
target_os = "emscripten",
229230
target_os = "fuchsia",
230231
target_os = "haiku",
@@ -253,6 +254,7 @@ impl Entry {
253254
/// `fstat` if this returns `None`.
254255
pub fn file_type(&self) -> Option<Type> {
255256
#[cfg(not(any(
257+
target_os = "aix",
256258
target_os = "illumos",
257259
target_os = "solaris",
258260
target_os = "haiku"
@@ -270,6 +272,7 @@ impl Entry {
270272

271273
// illumos, Solaris, and Haiku systems do not have the d_type member at all:
272274
#[cfg(any(
275+
target_os = "aix",
273276
target_os = "illumos",
274277
target_os = "solaris",
275278
target_os = "haiku"

0 commit comments

Comments
 (0)