From a9807058a60e0f606ead2f38e853447dbfc1403b Mon Sep 17 00:00:00 2001 From: tkernelcn <90441159+tkernelcn@users.noreply.github.com> Date: Wed, 17 Jan 2024 21:20:35 +0800 Subject: [PATCH] Set CONFIG_HAS_CAP_ENTER to support posix file api for freertos (#3041) Since there is no so rich api in freertos like embedded system, simply set CONFIG_HAS_CAP_ENTER to 1 to support posix file api for freertos. Test file api in wasm app pass. --- .../libc-wasi/sandboxed-system-primitives/src/ssp_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h index e3188976..298dea67 100644 --- a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h +++ b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h @@ -34,7 +34,7 @@ #define CONFIG_HAS_GETRANDOM 0 #endif -#if defined(__CloudABI__) +#if defined(__CloudABI__) || defined(BH_PLATFORM_FREERTOS) #define CONFIG_HAS_CAP_ENTER 1 #else #define CONFIG_HAS_CAP_ENTER 0