this commit makes the whole thing work

This commit is contained in:
Mackenzie Clark
2019-03-22 15:35:38 -07:00
parent eedb6b9d72
commit b7c5f27b37
4 changed files with 167 additions and 59 deletions

View File

@ -30,9 +30,9 @@ extern "C" {
pub fn wait4(pid: pid_t, status: *mut c_int, options: c_int, rusage: *mut rusage) -> pid_t;
}
use crate::utils::read_string_from_wasm;
#[cfg(not(target_os = "macos"))]
use libc::wait4;
use crate::utils::read_string_from_wasm;
/// wait4
#[allow(clippy::cast_ptr_alignment)]