Skip to content

Commit 381d494

Browse files
committed
NetBSD: Make statvfs.f_spare non-public
With NetBSD10 the type changes and fields get adjusted. Make the field nonpublic now to prepare for this change in the future. This is a minor breaking change but means that the NetBSD10 updates will not be breaking. Link: https://github.com/NetBSD/src/blob/6017cb90fd7d83ed6e45d93129b12d525978c2fa/sys/sys/statvfs.h#L94 (backport <#4782>) (cherry picked from commit d5f4354)
1 parent 18ec731 commit 381d494

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/new/netbsd/sys/statvfs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ s! {
3535
pub f_namemax: c_ulong,
3636
pub f_owner: crate::uid_t,
3737

38-
pub f_spare: [u32; 4],
38+
// This type is updated in a future version
39+
f_spare: [u32; 4],
3940

4041
pub f_fstypename: [c_char; _VFS_NAMELEN],
4142
pub f_mntonname: [c_char; _VFS_MNAMELEN],
4243
pub f_mntfromname: [c_char; _VFS_MNAMELEN],
44+
// Added in NetBSD10
45+
// pub f_mntfromlabel: [c_char; _VFS_MNAMELEN],
4346
}
4447
}

0 commit comments

Comments
 (0)