Skip to content

Commit bc6eda2

Browse files
Set nuttx isatty definition according to CONFIG_SERIAL_TERMIOS (bytecodealliance#1234)
The isatty definition on nuttx depends on CONFIG_SERIAL_TERMIOS
1 parent d067693 commit bc6eda2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/shared/platform/nuttx/platform_internal.h

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ typedef pthread_t korp_thread;
6868
#define O_NOFOLLOW 0
6969
#endif
7070

71+
#undef CONFIG_HAS_ISATTY
72+
#ifdef CONFIG_SERIAL_TERMIOS
73+
#define CONFIG_HAS_ISATTY 1
74+
#else
75+
#define CONFIG_HAS_ISATTY 0
76+
#endif
77+
7178
/*
7279
* NuttX doesn't have openat family.
7380
*/

0 commit comments

Comments
 (0)