diff options
Diffstat (limited to 'src/unix/linux_like/mod.rs')
-rw-r--r-- | src/unix/linux_like/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 89d67a6f14..19dfb8f586 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1366,7 +1366,9 @@ pub const ARPHRD_VOID: u16 = 0xFFFF; pub const ARPHRD_NONE: u16 = 0xFFFE; cfg_if! { - if #[cfg(not(target_arch = "s390x"))] { + if #[cfg(target_os = "emscripten")] { + // Emscripten does not define any `*_SUPER_MAGIC` constants. + } else if #[cfg(not(target_arch = "s390x"))] { pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5; pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff; pub const AFS_SUPER_MAGIC: ::c_long = 0x5346414f; |