diff --git a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c index 3d90811bc..d20537ad0 100644 --- a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c +++ b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c @@ -2135,7 +2135,7 @@ wasmtime_ssp_poll_oneoff(wasm_exec_env_t exec_env, struct fd_table *curfds, // nanosleep(). This is incorrect, but good enough for now. os_timespec ts; convert_timestamp(in[0].u.u.clock.timeout, &ts); - nanosleep(&ts, NULL); + // nanosleep(&ts, NULL); } break; case __WASI_CLOCK_REALTIME: @@ -2163,7 +2163,7 @@ wasmtime_ssp_poll_oneoff(wasm_exec_env_t exec_env, struct fd_table *curfds, // Relative sleeps can be done using nanosleep(). os_timespec ts; convert_timestamp(in[0].u.u.clock.timeout, &ts); - nanosleep(&ts, NULL); + // nanosleep(&ts, NULL); } break; default: diff --git a/core/shared/platform/zephyr/platform_internal.h b/core/shared/platform/zephyr/platform_internal.h index 7e59faa74..ae2014408 100644 --- a/core/shared/platform/zephyr/platform_internal.h +++ b/core/shared/platform/zephyr/platform_internal.h @@ -51,6 +51,7 @@ #include #include #include +#include #endif /* end of KERNEL_VERSION_NUMBER < 0x030200 */ #ifdef CONFIG_USERSPACE