Skip to content

Commit 7b6d0a5

Browse files
authored
Don't redefine D_INO if already defined (#3036)
1 parent ffa131b commit 7b6d0a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/shared/platform/common/posix/posix_file.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
* For NuttX, CONFIG_HAS_ISATTY is provided by its platform header.
2626
* (platform_internal.h)
2727
*/
28+
#if !defined(CONFIG_HAS_D_INO)
2829
#if !defined(__NuttX__)
2930
#define CONFIG_HAS_D_INO 1
3031
#define CONFIG_HAS_ISATTY 1
3132
#else
3233
#define CONFIG_HAS_D_INO 0
3334
#endif
35+
#endif
3436

3537
#if !defined(__APPLE__) && !defined(ESP_PLATFORM) && !defined(__COSMOPOLITAN__)
3638
#define CONFIG_HAS_POSIX_FALLOCATE 1

0 commit comments

Comments
 (0)