wasi-common/yanix: fix FreeBSD support (#756)
* wasi-common/yanix: fix FreeBSD support * yanix: add fadvise support on FreeBSD and NetBSD * runtime,jit: use cfg(unix) instead of linux||macos
This commit is contained in:
@@ -30,7 +30,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(any(target_os = "linux", target_os = "macos"))] {
|
||||
if #[cfg(unix)] {
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn HandleTrap(
|
||||
pc: *mut u8,
|
||||
|
||||
Reference in New Issue
Block a user