Skip to content

Commit d32e0d3

Browse files
committed
Omit invalid waitpid flags on OpenBSD
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those from that platform.
1 parent 1b9d205 commit d32e0d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/wait.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ libc_bitflags!(
88
pub struct WaitPidFlag: c_int {
99
WNOHANG;
1010
WUNTRACED;
11+
#[cfg(not(target_os = "openbsd"))]
1112
WEXITED;
1213
WCONTINUED;
14+
#[cfg(not(target_os = "openbsd"))]
1315
WSTOPPED;
1416
/// Don't reap, just poll status.
17+
#[cfg(not(target_os = "openbsd"))]
1518
WNOWAIT;
1619
/// Don't wait on children of other threads in this group
1720
#[cfg(any(target_os = "android", target_os = "linux"))]

0 commit comments

Comments
 (0)