Skip to content

Commit d98eb8f

Browse files
author
Xing Xue
committed
Fix the type of the 'f_fsid' field in 'struct statvfs'.
1 parent 0fb5309 commit d98eb8f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,6 +5623,9 @@ fn test_aix(target: &str) {
56235623
("__context64", "fpr") => true,
56245624
("__tm_context_t", "fpr") => true,
56255625

5626+
// The _ALL_SOURCE type of 'f_fsid' differs from POSIX's on AIX.
5627+
("statvfs", "f_fsid") => true,
5628+
56265629
_ => false,
56275630
}
56285631
});

src/unix/aix/powerpc64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ s! {
2929
pub f_files: crate::fsfilcnt_t,
3030
pub f_ffree: crate::fsfilcnt_t,
3131
pub f_favail: crate::fsfilcnt_t,
32-
pub f_fsid: crate::fsid_t,
32+
pub f_fsid: c_ulong,
3333
pub f_basetype: [c_char; 16],
3434
pub f_flag: c_ulong,
3535
pub f_namemax: c_ulong,

0 commit comments

Comments
 (0)