freertos: Minor changes for freertos libc_wasi build adaption (#2973)

This commit is contained in:
tkernelcn 2024-01-04 09:49:24 +08:00 committed by GitHub
parent 1ee4767d97
commit a2751903ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,6 @@
#include <stdio.h>
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

View File

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

View File

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