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.
This commit is contained in:
tkernelcn 2024-01-17 21:20:35 +08:00 committed by GitHub
parent 64e82ca102
commit a9807058a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@
#define CONFIG_HAS_GETRANDOM 0 #define CONFIG_HAS_GETRANDOM 0
#endif #endif
#if defined(__CloudABI__) #if defined(__CloudABI__) || defined(BH_PLATFORM_FREERTOS)
#define CONFIG_HAS_CAP_ENTER 1 #define CONFIG_HAS_CAP_ENTER 1
#else #else
#define CONFIG_HAS_CAP_ENTER 0 #define CONFIG_HAS_CAP_ENTER 0