diff --git a/lib/runtime-c-api/src/import/wasi.rs b/lib/runtime-c-api/src/import/wasi.rs index 2f105b1a1d3..9b63a96a1f6 100644 --- a/lib/runtime-c-api/src/import/wasi.rs +++ b/lib/runtime-c-api/src/import/wasi.rs @@ -117,7 +117,7 @@ pub unsafe extern "C" fn wasmer_wasi_get_version(module: *const wasmer_module_t) let module = &*(module as *const Module); - match wasi::get_wasi_version(module) { + match wasi::get_wasi_version(module, false) { Some(version) => match version { wasi::WasiVersion::Snapshot0 => Version::Snapshot0, wasi::WasiVersion::Snapshot1 => Version::Snapshot1,