Skip to content

Commit 4356ff2

Browse files
committed
introduce wasix
1 parent 2c0250f commit 4356ff2

File tree

2 files changed

+1041
-1
lines changed

2 files changed

+1041
-1
lines changed

src/wasi/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub type time_t = c_longlong;
3131
pub type c_double = f64;
3232
pub type c_float = f32;
3333
pub type ino_t = u64;
34-
pub type sigset_t = c_uchar;
3534
pub type suseconds_t = c_longlong;
3635
pub type mode_t = u32;
3736
pub type dev_t = u64;
@@ -888,4 +887,11 @@ cfg_if! {
888887
mod p2;
889888
pub use self::p2::*;
890889
}
890+
891+
if #[cfg(target_vendor = "wasmer")] {
892+
mod wasix;
893+
pub use self::wasix::*;
894+
} else {
895+
pub type sigset_t = c_uchar;
896+
}
891897
}

0 commit comments

Comments
 (0)