瀏覽代碼

freertos: Change ssp_config.h due to clock_nanosleep() not supported in freertos (#2979)

tkernelcn 2 年之前
父節點
當前提交
4a1ad9a160
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h

+ 2 - 1
core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h

@@ -41,7 +41,8 @@
 #endif
 
 #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__EMSCRIPTEN__) \
-    && !defined(ESP_PLATFORM) && !defined(DISABLE_CLOCK_NANOSLEEP)
+    && !defined(ESP_PLATFORM) && !defined(DISABLE_CLOCK_NANOSLEEP)           \
+    && !defined(BH_PLATFORM_FREERTOS)
 #define CONFIG_HAS_CLOCK_NANOSLEEP 1
 #else
 #define CONFIG_HAS_CLOCK_NANOSLEEP 0