From fdec088852612c57f3d5e396e7c6212a471de6ab Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Thu, 12 Sep 2024 15:42:45 +0330 Subject: [PATCH] fix unknown vendor issue --- src/wasi/mod.rs | 3 ++- src/wasi/wasi.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wasi/mod.rs b/src/wasi/mod.rs index 91c55884b02a8..9ab4c8c124b79 100644 --- a/src/wasi/mod.rs +++ b/src/wasi/mod.rs @@ -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; @@ -889,7 +891,6 @@ cfg_if! { } } -#[allow(unexpected_cfgs)] cfg_if! { if #[cfg(target_vendor = "wasmer")] { mod wasix; diff --git a/src/wasi/wasi.rs b/src/wasi/wasi.rs index 97c8313cee4e4..c81021421f973 100644 --- a/src/wasi/wasi.rs +++ b/src/wasi/wasi.rs @@ -1 +1,3 @@ +use super::c_uchar; + pub type sigset_t = c_uchar;