Update poll_oneoff's signature
This PR updates `wasmtime_wasi` crate by adjusting `poll_oneoff`'s signature to that introduced in `wasi_common` in CraneStation/wasi-common#137. This change is required in order to fix #440.
This commit is contained in:
@@ -13,7 +13,7 @@ edition = "2018"
|
||||
wasmtime-runtime = { path = "../wasmtime-runtime" }
|
||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||
wasmtime-jit = { path = "../wasmtime-jit" }
|
||||
wasi-common = { git = "https://github.com/CraneStation/wasi-common", rev = "c3bf040"}
|
||||
wasi-common = { git = "https://github.com/CraneStation/wasi-common", rev = "3a374d0"}
|
||||
cranelift-codegen = { version = "0.46.1", features = ["enable-serde"] }
|
||||
cranelift-entity = { version = "0.46.1", features = ["enable-serde"] }
|
||||
cranelift-wasm = { version = "0.46.1", features = ["enable-serde"] }
|
||||
|
||||
@@ -874,8 +874,9 @@ syscalls! {
|
||||
nsubscriptions,
|
||||
nevents,
|
||||
);
|
||||
let wasi_ctx = ok_or_errno!(get_wasi_ctx(&mut *vmctx));
|
||||
let memory = ok_or_errno!(get_memory(&mut *vmctx));
|
||||
hostcalls::poll_oneoff(memory, in_, out, nsubscriptions, nevents)
|
||||
hostcalls::poll_oneoff(wasi_ctx, memory, in_, out, nsubscriptions, nevents)
|
||||
}
|
||||
|
||||
pub unsafe extern "C" fn proc_exit(_vmctx: *mut VMContext, rval: u32,) -> () {
|
||||
|
||||
Reference in New Issue
Block a user