diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-08 19:48:31 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-08 20:21:52 -0700 |
commit | 6dd3625e45d3eb4c29000b04ad8c029e37e109f9 (patch) | |
tree | 69953d9f17d9fbb5f3f42626b5f0f6fbd2c55087 /src/sys | |
parent | fbfb70c954c775206c61938498ea83bc70bcfc35 (diff) | |
download | nix-6dd3625e45d3eb4c29000b04ad8c029e37e109f9.zip |
Enable ioctl on mips64 and s390x
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/ioctl/platform/linux.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sys/ioctl/platform/linux.rs b/src/sys/ioctl/platform/linux.rs index efdd17bb..cdf5b20a 100644 --- a/src/sys/ioctl/platform/linux.rs +++ b/src/sys/ioctl/platform/linux.rs @@ -1,7 +1,7 @@ pub const NRBITS: u32 = 8; pub const TYPEBITS: u32 = 8; -#[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))] +#[cfg(any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64"))] mod consts { pub const NONE: u8 = 1; pub const READ: u8 = 2; @@ -12,16 +12,19 @@ mod consts { #[cfg(not(any(target_arch = "powerpc", target_arch = "mips", + target_arch = "mips64", target_arch = "x86", target_arch = "arm", target_arch = "x86_64", target_arch = "powerpc64", + target_arch = "s390x", target_arch = "aarch64")))] use this_arch_not_supported; // "Generic" ioctl protocol #[cfg(any(target_arch = "x86", target_arch = "arm", + target_arch = "s390x", target_arch = "x86_64", target_arch = "aarch64"))] mod consts { |