serial:fix a compile bug

serial_io.c use pid,but the headfile Inconsistent macro definitions
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2022-07-21 10:01:44 +03:00
committed by Petro Karashchenko
parent ae1cbc47ef
commit 0b3fd3b0b5
+2 -1
View File
@@ -278,7 +278,8 @@ struct uart_dev_s
#endif
bool isconsole; /* true: This is the serial console */
#if defined(CONFIG_TTY_SIGINT) || defined(CONFIG_TTY_SIGTSTP)
#if defined(CONFIG_TTY_SIGINT) || defined(CONFIG_TTY_SIGTSTP) || \
defined(CONFIG_TTY_FORCE_PANIC) || defined(CONFIG_TTY_LAUNCH)
pid_t pid; /* Thread PID to receive signals (-1 if none) */
#endif