Trying to fix linux compilation error

This commit is contained in:
Syrus 2018-12-18 17:31:30 -08:00
parent 116ed86668
commit 88ee0d736e

View File

@ -82,6 +82,9 @@ extern "C" {
pub fn wait4(pid: pid_t, status: *mut c_int, options: c_int, rusage: *mut rusage) -> pid_t;
}
#[cfg(not(target_os = "macos"))]
use libc::wait4;
// Another conditional constant for name resolution: Macos et iOS use
// SO_NOSIGPIPE as a setsockopt flag to disable SIGPIPE emission on socket.
// Other platforms do otherwise.