mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
freertos: Minor changes for freertos libc_wasi build adaption (#2973)
This commit is contained in:
parent
1ee4767d97
commit
a2751903ff
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1047,7 +1047,7 @@ execute_interruptible_poll_oneoff(
|
|||
|
||||
if (wasm_cluster_is_thread_terminated(exec_env)) {
|
||||
wasm_runtime_free(in_copy);
|
||||
return EINTR;
|
||||
return __WASI_EINTR;
|
||||
}
|
||||
else if (*nevents > 0) {
|
||||
all_outs_are_type_clock = true;
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#endif
|
||||
|
||||
#if !defined(__APPLE__) && !defined(BH_PLATFORM_LINUX_SGX) && !defined(_WIN32) \
|
||||
&& !defined(__COSMOPOLITAN__)
|
||||
&& !defined(__COSMOPOLITAN__) && !defined(BH_PLATFORM_FREERTOS)
|
||||
#define CONFIG_HAS_PTHREAD_CONDATTR_SETCLOCK 1
|
||||
#else
|
||||
#define CONFIG_HAS_PTHREAD_CONDATTR_SETCLOCK 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user