diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-09-29 00:28:50 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@palantir.com> | 2014-09-30 12:52:47 -0700 |
| commit | d3444779e6776025ee19202c5e69964abde90374 (patch) | |
| tree | ff2c8c27ce14ac9a02fcc76c30bf20e728409a95 /src/libnative/io/process.rs | |
| parent | efbb15d59ceb3dfbf4d7e4e778c815dd8d8f52cf (diff) | |
| download | rust-d3444779e6776025ee19202c5e69964abde90374.tar.gz rust-d3444779e6776025ee19202c5e69964abde90374.zip | |
Fix libnative
Diffstat (limited to 'src/libnative/io/process.rs')
| -rw-r--r-- | src/libnative/io/process.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs index cb392e1675f..3a6ae42f946 100644 --- a/src/libnative/io/process.rs +++ b/src/libnative/io/process.rs @@ -840,18 +840,17 @@ fn free_handle(_handle: *mut ()) { #[cfg(unix)] fn translate_status(status: c_int) -> rtio::ProcessExit { #![allow(non_snake_case)] - #[cfg(target_os = "linux")] - #[cfg(target_os = "android")] + #[cfg(any(target_os = "linux", target_os = "android"))] mod imp { pub fn WIFEXITED(status: i32) -> bool { (status & 0xff) == 0 } pub fn WEXITSTATUS(status: i32) -> i32 { (status >> 8) & 0xff } pub fn WTERMSIG(status: i32) -> i32 { status & 0x7f } } - #[cfg(target_os = "macos")] - #[cfg(target_os = "ios")] - #[cfg(target_os = "freebsd")] - #[cfg(target_os = "dragonfly")] + #[cfg(any(target_os = "macos", + target_os = "ios", + target_os = "freebsd", + target_os = "dragonfly"))] mod imp { pub fn WIFEXITED(status: i32) -> bool { (status & 0x7f) == 0 } pub fn WEXITSTATUS(status: i32) -> i32 { status >> 8 } |
