Skip to content

Commit 8de4cfb

Browse files
committed
Attempt to fix build for non-{android,linux} platforms
1 parent 9993f08 commit 8de4cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/wait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn decode(pid : pid_t, status: i32) -> WaitStatus {
191191
} else if status::signaled(status) {
192192
WaitStatus::Signaled(pid, status::term_signal(status), status::dumped_core(status))
193193
} else if status::stopped(status) {
194-
if cfg!(any(target_os = "linux", target_os = "android")) {
194+
#[cfg(any(target_os = "linux", target_os = "android"))] {
195195
let status_additional = status::stop_additional(status);
196196
if status_additional != 0 {
197197
return WaitStatus::PtraceEvent(pid, status::stop_signal(status), status::stop_additional(status))

0 commit comments

Comments
 (0)