Skip to content

Commit 0e878f3

Browse files
committed
Enable ioctl on mips64 and s390x
1 parent 18abae3 commit 0e878f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sys/ioctl/platform/linux.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pub const NRBITS: u32 = 8;
22
pub const TYPEBITS: u32 = 8;
33

4-
#[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))]
4+
#[cfg(any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64"))]
55
mod consts {
66
pub const NONE: u8 = 1;
77
pub const READ: u8 = 2;
@@ -12,16 +12,19 @@ mod consts {
1212

1313
#[cfg(not(any(target_arch = "powerpc",
1414
target_arch = "mips",
15+
target_arch = "mips64",
1516
target_arch = "x86",
1617
target_arch = "arm",
1718
target_arch = "x86_64",
1819
target_arch = "powerpc64",
20+
target_arch = "s390x",
1921
target_arch = "aarch64")))]
2022
use this_arch_not_supported;
2123

2224
// "Generic" ioctl protocol
2325
#[cfg(any(target_arch = "x86",
2426
target_arch = "arm",
27+
target_arch = "s390x",
2528
target_arch = "x86_64",
2629
target_arch = "aarch64"))]
2730
mod consts {

0 commit comments

Comments
 (0)