From e78473c32163abe5fb48ddcd858e5d0da20910fd Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Thu, 13 Oct 2022 12:18:34 +0800 Subject: add XFS_SUPER_NUMBER to nix::sys::statfs --- src/sys/statfs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sys') diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs index a1c1aaa9..83196dba 100644 --- a/src/sys/statfs.rs +++ b/src/sys/statfs.rs @@ -208,7 +208,9 @@ pub const XENFS_SUPER_MAGIC: FsType = FsType(libc::XENFS_SUPER_MAGIC as fs_type_ #[cfg(any(target_os = "linux", target_os = "android"))] #[allow(missing_docs)] pub const NSFS_MAGIC: FsType = FsType(libc::NSFS_MAGIC as fs_type_t); - +#[cfg(all(any(target_os = "linux", target_os = "android"), not(target_env = "musl")))] +#[allow(missing_docs)] +pub const XFS_SUPER_MAGIC: FsType = FsType(libc::XFS_SUPER_MAGIC as fs_type_t); impl Statfs { /// Magic code defining system type -- cgit v1.2.3