mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
create an alias for pid_t which does not exist on libc windows (#160)
This commit is contained in:
parent
8d2c1956d7
commit
25d438f346
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user