Skip to content

Commit 4875c52

Browse files
committed
Don't define the *_SUPER_MAGIC constants on Emscripten.
1 parent d0891d9 commit 4875c52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/unix/linux_like/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,9 @@ pub const ARPHRD_VOID: u16 = 0xFFFF;
13661366
pub const ARPHRD_NONE: u16 = 0xFFFE;
13671367

13681368
cfg_if! {
1369-
if #[cfg(not(target_arch = "s390x"))] {
1369+
if #[cfg(target_os = "emscripten")] {
1370+
// Emscripten does not define any `*_SUPER_MAGIC` constants.
1371+
} else if #[cfg(not(target_arch = "s390x"))] {
13701372
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
13711373
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
13721374
pub const AFS_SUPER_MAGIC: ::c_long = 0x5346414f;

0 commit comments

Comments
 (0)