mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-01-21 16:49:12 +00:00
fix(zephyr): Make the simple-file sample compile by commenting nanosleep as a temp solution
This commit is contained in:
parent
6253bd1b52
commit
45acd9fb9f
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
#include <zephyr/net/net_core.h>
|
||||
#include <zephyr/net/net_context.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/fs/fs.h>
|
||||
#endif /* end of KERNEL_VERSION_NUMBER < 0x030200 */
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user