From bc6eda2803b216c55b87bcd90aaec8d794ba90c4 Mon Sep 17 00:00:00 2001 From: dongsheng28849455 <68947925+dongsheng28849455@users.noreply.github.com> Date: Mon, 20 Jun 2022 11:58:48 +0800 Subject: [PATCH] Set nuttx isatty definition according to CONFIG_SERIAL_TERMIOS (#1234) 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. */