summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-06-20 01:30:39 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-06-20 01:30:39 +0000
commit274b09eee1cdac51ceea9238d2e584babae48720 (patch)
tree612c4f14467dfed04fe312b1166768e4ddb74b4c /src/sys
parent96f26dbed61ce0a7c99a73e93fa06aea2d764727 (diff)
parenta5130ace13a46309b4f5863c27c34a60bf2610ec (diff)
downloadnix-274b09eee1cdac51ceea9238d2e584babae48720.zip
Merge #599
599: Support powerpc64 r=Susurrus The test_ioctl values are computed using ioctl-test.c
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/ioctl/platform/linux.rs3
-rw-r--r--src/sys/syscall.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/ioctl/platform/linux.rs b/src/sys/ioctl/platform/linux.rs
index aacea459..efdd17bb 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"))]
+#[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))]
mod consts {
pub const NONE: u8 = 1;
pub const READ: u8 = 2;
@@ -15,6 +15,7 @@ mod consts {
target_arch = "x86",
target_arch = "arm",
target_arch = "x86_64",
+ target_arch = "powerpc64",
target_arch = "aarch64")))]
use this_arch_not_supported;
diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs
index 692b4cef..cff2cc99 100644
--- a/src/sys/syscall.rs
+++ b/src/sys/syscall.rs
@@ -54,7 +54,7 @@ mod arch {
pub static MEMFD_CREATE: Syscall = 354;
}
-#[cfg(target_arch = "powerpc")]
+#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
mod arch {
use libc::c_long;