Skip to content

Commit 58c6400

Browse files
committed
fix issue with cfg
1 parent 4356ff2 commit 58c6400

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/wasi/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ 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+
#[cfg(not(target_vendor = "wasmer"))]
35+
pub type sigset_t = c_uchar;
3436
pub type suseconds_t = c_longlong;
3537
pub type mode_t = u32;
3638
pub type dev_t = u64;
@@ -886,12 +888,8 @@ cfg_if! {
886888
if #[cfg(target_env = "p2")] {
887889
mod p2;
888890
pub use self::p2::*;
889-
}
890-
891-
if #[cfg(target_vendor = "wasmer")] {
891+
} else if #[cfg(target_vendor = "wasmer")] {
892892
mod wasix;
893893
pub use self::wasix::*;
894-
} else {
895-
pub type sigset_t = c_uchar;
896894
}
897895
}

0 commit comments

Comments
 (0)