Skip to content

Commit

Permalink
Fix build with wasmtime 27.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
osokin committed Nov 22, 2024
1 parent 4f04132 commit 7232240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wasm/nxt_rt_wasmtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ nxt_wasmtime_wasi_init(const nxt_wasm_ctx_t *ctx)
wasi_config_inherit_stderr(wasi_config);

for (dir = ctx->dirs; dir != NULL && *dir != NULL; dir++) {
wasi_config_preopen_dir(wasi_config, *dir, *dir);
wasi_config_preopen_dir(wasi_config, *dir, *dir,
WASMTIME_WASI_DIR_PERMS_READ,
WASMTIME_WASI_FILE_PERMS_READ);
}

error = wasmtime_context_set_wasi(rt_ctx->ctx, wasi_config);
Expand Down

0 comments on commit 7232240

Please sign in to comment.