mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-11 16:35:33 +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 <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1047,7 +1047,7 @@ execute_interruptible_poll_oneoff(
|
||||||
|
|
||||||
if (wasm_cluster_is_thread_terminated(exec_env)) {
|
if (wasm_cluster_is_thread_terminated(exec_env)) {
|
||||||
wasm_runtime_free(in_copy);
|
wasm_runtime_free(in_copy);
|
||||||
return EINTR;
|
return __WASI_EINTR;
|
||||||
}
|
}
|
||||||
else if (*nevents > 0) {
|
else if (*nevents > 0) {
|
||||||
all_outs_are_type_clock = true;
|
all_outs_are_type_clock = true;
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__APPLE__) && !defined(BH_PLATFORM_LINUX_SGX) && !defined(_WIN32) \
|
#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
|
#define CONFIG_HAS_PTHREAD_CONDATTR_SETCLOCK 1
|
||||||
#else
|
#else
|
||||||
#define CONFIG_HAS_PTHREAD_CONDATTR_SETCLOCK 0
|
#define CONFIG_HAS_PTHREAD_CONDATTR_SETCLOCK 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user