Skip to content

Commit

Permalink
Omit invalid waitpid flags on OpenBSD
Browse files Browse the repository at this point in the history
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those
from that platform.
  • Loading branch information
worr committed Nov 6, 2017
1 parent ba9ee75 commit 73f9877
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sys/wait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ libc_bitflags!(
pub struct WaitPidFlag: c_int {
WNOHANG;
WUNTRACED;
#[cfg(any(target_os = "android",
target_os = "freebsd",
target_os = "linux"))]
WEXITED;
WCONTINUED;
#[cfg(any(target_os = "android",
target_os = "freebsd",
target_os = "linux"))]
WSTOPPED;
/// Don't reap, just poll status.
#[cfg(any(target_os = "android",
target_os = "freebsd",
target_os = "linux"))]
WNOWAIT;
/// Don't wait on children of other threads in this group
#[cfg(any(target_os = "android", target_os = "linux"))]
Expand Down

0 comments on commit 73f9877

Please sign in to comment.