Skip to content

Commit 8bd0669

Browse files
Xing Xuetgross35
authored andcommitted
Fix the type of the 'f_fsid' field in 'struct statvfs'.
(backport <rust-lang#4576>) (cherry picked from commit d98eb8f)
1 parent b70565e commit 8bd0669

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
@@ -5700,6 +5700,9 @@ fn test_aix(target: &str) {
57005700
("__context64", "fpr") => true,
57015701
("__tm_context_t", "fpr") => true,
57025702

5703+
// The _ALL_SOURCE type of 'f_fsid' differs from POSIX's on AIX.
5704+
("statvfs", "f_fsid") => true,
5705+
57035706
_ => false,
57045707
}
57055708
});

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)