summaryrefslogtreecommitdiff
path: root/src/sys/statfs.rs
diff options
context:
space:
mode:
authorMrCroxx <mrcroxx@outlook.com>2022-10-13 12:18:34 +0800
committerMrCroxx <mrcroxx@outlook.com>2022-10-13 12:18:34 +0800
commite78473c32163abe5fb48ddcd858e5d0da20910fd (patch)
tree480e01b419989aa14efdfc6ea2f173c58b6ce06e /src/sys/statfs.rs
parent0d6cc1844da238ca35989b95f80e33980b56db02 (diff)
downloadnix-e78473c32163abe5fb48ddcd858e5d0da20910fd.zip
add XFS_SUPER_NUMBER to nix::sys::statfs
Diffstat (limited to 'src/sys/statfs.rs')
-rw-r--r--src/sys/statfs.rs4
1 files changed, 3 insertions, 1 deletions
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