From 370b79e10414a82c5de91bc4e90e4aab2f99c309 Mon Sep 17 00:00:00 2001 From: "Dongsheng.Yan" Date: Fri, 17 Jun 2022 11:12:21 +0800 Subject: [PATCH] the isatty definition on nuttx depends on CONFIG_SERIAL_TERMIOS the isatty definition on nuttx depends on CONFIG_SERIAL_TERMIOS --- core/shared/platform/nuttx/platform_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/shared/platform/nuttx/platform_internal.h b/core/shared/platform/nuttx/platform_internal.h index bb985ac06..54c8d7445 100644 --- a/core/shared/platform/nuttx/platform_internal.h +++ b/core/shared/platform/nuttx/platform_internal.h @@ -68,6 +68,13 @@ typedef pthread_t korp_thread; #define O_NOFOLLOW 0 #endif +#undef CONFIG_HAS_ISATTY +#ifdef CONFIG_SERIAL_TERMIOS +#define CONFIG_HAS_ISATTY 1 +#else +#define CONFIG_HAS_ISATTY 0 +#endif + /* * NuttX doesn't have openat family. */