Set nuttx isatty definition according to CONFIG_SERIAL_TERMIOS (#1234)

The isatty definition on nuttx depends on CONFIG_SERIAL_TERMIOS
This commit is contained in:
dongsheng28849455 2022-06-20 11:58:48 +08:00 committed by GitHub
parent d0676930dc
commit bc6eda2803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
*/