Skip to content

Commit 8a003c5

Browse files
committed
Initial support for AIX operating system
1 parent 75a26cd commit 8a003c5

File tree

13 files changed

+362
-16
lines changed

13 files changed

+362
-16
lines changed

src/dir.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ impl Entry {
221221
#[allow(clippy::unnecessary_cast)]
222222
pub fn ino(&self) -> u64 {
223223
cfg_if! {
224-
if #[cfg(any(target_os = "android",
224+
if #[cfg(any(target_os = "aix",
225+
target_os = "android",
225226
target_os = "emscripten",
226227
target_os = "fuchsia",
227228
target_os = "haiku",
@@ -250,6 +251,7 @@ impl Entry {
250251
/// `fstat` if this returns `None`.
251252
pub fn file_type(&self) -> Option<Type> {
252253
#[cfg(not(any(
254+
target_os = "aix",
253255
target_os = "illumos",
254256
target_os = "solaris",
255257
target_os = "haiku"
@@ -267,6 +269,7 @@ impl Entry {
267269

268270
// illumos, Solaris, and Haiku systems do not have the d_type member at all:
269271
#[cfg(any(
272+
target_os = "aix",
270273
target_os = "illumos",
271274
target_os = "solaris",
272275
target_os = "haiku"

0 commit comments

Comments
 (0)