fix(rust): use unix + wasi cfg instead of not windows for fd
This commit is contained in:
parent
af695f3c0a
commit
0f125e2d09
2 changed files with 6 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
|||
#[cfg(not(feature = "bindgen"))]
|
||||
include!("./bindings.rs");
|
||||
|
||||
#[cfg(not(windows))]
|
||||
#[cfg(any(unix, target_os = "wasi"))]
|
||||
extern "C" {
|
||||
pub(crate) fn _ts_dup(fd: std::os::raw::c_int) -> std::os::raw::c_int;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue