mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 14:41:32 +00:00
create an alias for pid_t which does not exist on libc windows (#160)
This commit is contained in:
@ -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 std::ffi::CStr;
|
||||||
use wasmer_runtime_core::vm::Ctx;
|
use wasmer_runtime_core::vm::Ctx;
|
||||||
|
Reference in New Issue
Block a user