Skip to content

Commit

Permalink
Don't define the *_SUPER_MAGIC constants on Emscripten.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 24, 2022
1 parent d0891d9 commit 4875c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4875c52

Please sign in to comment.