From 7b6d0a5d45da556573e24182dacaf6882132d550 Mon Sep 17 00:00:00 2001 From: Maks Litskevich Date: Tue, 16 Jan 2024 14:28:06 +0000 Subject: [PATCH] Don't redefine D_INO if already defined (#3036) --- core/shared/platform/common/posix/posix_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/shared/platform/common/posix/posix_file.c b/core/shared/platform/common/posix/posix_file.c index 8c4f7aa9..ad5589f7 100644 --- a/core/shared/platform/common/posix/posix_file.c +++ b/core/shared/platform/common/posix/posix_file.c @@ -25,12 +25,14 @@ * For NuttX, CONFIG_HAS_ISATTY is provided by its platform header. * (platform_internal.h) */ +#if !defined(CONFIG_HAS_D_INO) #if !defined(__NuttX__) #define CONFIG_HAS_D_INO 1 #define CONFIG_HAS_ISATTY 1 #else #define CONFIG_HAS_D_INO 0 #endif +#endif #if !defined(__APPLE__) && !defined(ESP_PLATFORM) && !defined(__COSMOPOLITAN__) #define CONFIG_HAS_POSIX_FALLOCATE 1