diff --git a/CHANGELOG.md b/CHANGELOG.md index 045756ddb3..e7be2de4c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Marked `sys::mman::{ mmap, munmap, madvise, munlock, msync }` as unsafe. ([#559](https://github.com/nix-rust/nix/pull/559)) - - + +### Fixed +- Fixed compilation on powerpc + ([#569](https://github.com/nix-rust/nix/pull/569)) ## [0.8.0] 2017-03-02 diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs index c2d9e51c12..692b4cef95 100644 --- a/src/sys/syscall.rs +++ b/src/sys/syscall.rs @@ -54,6 +54,16 @@ mod arch { pub static MEMFD_CREATE: Syscall = 354; } +#[cfg(target_arch = "powerpc")] +mod arch { + use libc::c_long; + + pub type Syscall = c_long; + + pub static SYSPIVOTROOT: Syscall = 203; + pub static MEMFD_CREATE: Syscall = 360; +} + extern { pub fn syscall(num: Syscall, ...) -> c_int; }