summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorWilliam Orr <will@worrbase.com>2017-11-05 22:39:25 -0800
committerWilliam Orr <will@worrbase.com>2017-11-11 10:44:10 -0800
commite43d7db9bf1b9c9522aa00d0e7c3cc9f6feea237 (patch)
tree36695fff6b13942ffe3b2d8d543164bb431f18f5 /src/sys
parentba9ee75ec0333f66d25b09d5c18bbaefac23714f (diff)
downloadnix-e43d7db9bf1b9c9522aa00d0e7c3cc9f6feea237.zip
Omit invalid waitpid flags on OpenBSD
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those from that platform.
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/wait.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sys/wait.rs b/src/sys/wait.rs
index ec1241be..29822c02 100644
--- a/src/sys/wait.rs
+++ b/src/sys/wait.rs
@@ -8,10 +8,31 @@ libc_bitflags!(
pub struct WaitPidFlag: c_int {
WNOHANG;
WUNTRACED;
+ #[cfg(any(target_os = "android",
+ target_os = "freebsd",
+ target_os = "haiku",
+ target_os = "ios",
+ target_os = "linux",
+ target_os = "macos",
+ target_os = "netbsd"))]
WEXITED;
WCONTINUED;
+ #[cfg(any(target_os = "android",
+ target_os = "freebsd",
+ target_os = "haiku",
+ target_os = "ios",
+ target_os = "linux",
+ target_os = "macos",
+ target_os = "netbsd"))]
WSTOPPED;
/// Don't reap, just poll status.
+ #[cfg(any(target_os = "android",
+ target_os = "freebsd",
+ target_os = "haiku",
+ target_os = "ios",
+ target_os = "linux",
+ target_os = "macos",
+ target_os = "netbsd"))]
WNOWAIT;
/// Don't wait on children of other threads in this group
#[cfg(any(target_os = "android", target_os = "linux"))]