Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5659,6 +5659,16 @@ fn test_aix(target: &str) {
// header does not define a separate standalone union type for it.
("ld_info", "_file") => true,

// On AIX, when _ALL_SOURCE is defined, the types of the following fields
// differ from those used when _XOPEN_SOURCE is defined. The former uses
// 'struct st_timespec', while the latter uses 'struct timespec'.
("stat", "st_atim") => true,
("stat", "st_mtim") => true,
("stat", "st_ctim") => true,
("stat64", "st_atim") => true,
("stat64", "st_mtim") => true,
("stat64", "st_ctim") => true,

_ => false,
}
});
Expand Down
6 changes: 3 additions & 3 deletions src/unix/aix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ s! {
pub st_gid: crate::gid_t,
pub st_rdev: dev_t,
pub st_ssize: c_int,
pub st_atim: st_timespec,
pub st_mtim: st_timespec,
pub st_ctim: st_timespec,
pub st_atim: crate::timespec,
pub st_mtim: crate::timespec,
pub st_ctim: crate::timespec,
pub st_blksize: blksize_t,
pub st_blocks: blkcnt_t,
pub st_vfstype: c_int,
Expand Down
6 changes: 3 additions & 3 deletions src/unix/aix/powerpc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ s! {
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_ssize: c_int,
pub st_atim: crate::st_timespec,
pub st_mtim: crate::st_timespec,
pub st_ctim: crate::st_timespec,
pub st_atim: crate::timespec,
pub st_mtim: crate::timespec,
pub st_ctim: crate::timespec,
pub st_blksize: crate::blksize_t,
pub st_blocks: crate::blkcnt_t,
pub st_vfstype: c_int,
Expand Down
Loading