Skip to content

Commit e78473c

Browse files
committed
add XFS_SUPER_NUMBER to nix::sys::statfs
1 parent 0d6cc18 commit e78473c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sys/statfs.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ pub const XENFS_SUPER_MAGIC: FsType = FsType(libc::XENFS_SUPER_MAGIC as fs_type_
208208
#[cfg(any(target_os = "linux", target_os = "android"))]
209209
#[allow(missing_docs)]
210210
pub const NSFS_MAGIC: FsType = FsType(libc::NSFS_MAGIC as fs_type_t);
211-
211+
#[cfg(all(any(target_os = "linux", target_os = "android"), not(target_env = "musl")))]
212+
#[allow(missing_docs)]
213+
pub const XFS_SUPER_MAGIC: FsType = FsType(libc::XFS_SUPER_MAGIC as fs_type_t);
212214

213215
impl Statfs {
214216
/// Magic code defining system type

0 commit comments

Comments
 (0)