summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-10-13 04:22:52 +0000
committerGitHub <noreply@github.com>2022-10-13 04:22:52 +0000
commit3f637de8e027843e1b2c4e9a05f19b071ea00017 (patch)
tree480e01b419989aa14efdfc6ea2f173c58b6ce06e /src/sys
parent0d6cc1844da238ca35989b95f80e33980b56db02 (diff)
parente78473c32163abe5fb48ddcd858e5d0da20910fd (diff)
downloadnix-3f637de8e027843e1b2c4e9a05f19b071ea00017.zip
Merge #1743
1743: add XFS_SUPER_NUMBER to nix::sys::statfs r=rtzoeller a=MrCroxx Close #1742 . Co-authored-by: MrCroxx <mrcroxx@outlook.com>
Diffstat (limited to 'src/sys')
-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