Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/wasi/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// [wasi-libc](https://github.com/WebAssembly/wasi-libc) definitions.
// `wasi-libc` project provides multiple libraries including emulated features, but we list only basic features with `libc.a` here.

#![allow(unexpected_cfgs)]

use super::{Send, Sync};
use core::iter::Iterator;

Expand Down Expand Up @@ -31,7 +33,6 @@ pub type time_t = c_longlong;
pub type c_double = f64;
pub type c_float = f32;
pub type ino_t = u64;
pub type sigset_t = c_uchar;
pub type suseconds_t = c_longlong;
pub type mode_t = u32;
pub type dev_t = u64;
Expand Down Expand Up @@ -889,3 +890,13 @@ cfg_if! {
pub use self::p2::*;
}
}

cfg_if! {
if #[cfg(target_vendor = "wasmer")] {
mod wasix;
pub use self::wasix::*;
} else {
mod wasi;
pub use self::wasi::*;
}
}
3 changes: 3 additions & 0 deletions src/wasi/wasi.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use super::c_uchar;

pub type sigset_t = c_uchar;
Loading