fix(zephyr): Make the simple-file sample compile by commenting nanosleep as a temp solution

This commit is contained in:
Lucas Abad 2025-09-09 11:16:08 +02:00 committed by liang.he@intel.com
parent 2a337c4710
commit 6d790537e5
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -67,6 +67,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