Temporarily disable code that does not compile on windows (#2386)

And return ENOSYS. We do that so we can at least compile the code on CI.
We'll be gradually enabling more and more functions.

Also, enabled `proc_raise()` for windows.
This commit is contained in:
Marcin Kolny
2023-07-25 03:35:05 +01:00
committed by GitHub
parent fe4ee37122
commit 5463ea4a20
4 changed files with 149 additions and 5 deletions

View File

@ -2907,8 +2907,15 @@ wasm_runtime_init_wasi(WASMModuleInstanceCommon *module_inst,
dir_list[i], errno);
goto fail;
}
#ifdef BH_PLATFORM_WINDOWS
if (error_buf)
snprintf(
error_buf, error_buf_size,
"pre-opening directory is not supported on windows platforms");
goto fail;
#else
raw_fd = open(path, O_RDONLY | O_DIRECTORY, 0);
#endif
if (raw_fd == -1) {
if (error_buf)
snprintf(error_buf, error_buf_size,