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
parent 6253bd1b52
commit 45acd9fb9f
No known key found for this signature in database
GPG Key ID: A711808FFB607F04
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

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