create an alias for pid_t which does not exist on libc windows (#160)

This commit is contained in:
Mackenzie Clark 2019-02-07 15:12:27 -08:00 committed by GitHub
parent 8d2c1956d7
commit 25d438f346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,10 @@
use libc::{abort, c_char, c_int, exit, pid_t, EAGAIN};
use libc::{abort, c_char, c_int, exit, EAGAIN};
#[cfg(not(target_os = "windows"))]
use libc::pid_t;
#[cfg(target_os = "windows")]
type pid_t = c_int;
use std::ffi::CStr;
use wasmer_runtime_core::vm::Ctx;