Add libc funcitons only for wasm32-wasip1-threads.

This commit is contained in:
Sebastian Urban 2024-12-05 12:24:19 +01:00
parent e4092bd909
commit 4f16640bbf

View file

@ -1,7 +1,7 @@
use crate::mem;
// For WASI add a few symbols not in upstream `libc` just yet.
#[cfg(target_os = "wasi")]
#[cfg(all(target_os = "wasi", target_env = "p1", target_feature = "atomics"))]
mod libc {
use crate::ffi;