From 0b3fd3b0b59db51644aba9d0c4c55306b47cf8bc Mon Sep 17 00:00:00 2001 From: anjiahao Date: Thu, 21 Jul 2022 11:16:08 +0800 Subject: [PATCH] serial:fix a compile bug serial_io.c use pid,but the headfile Inconsistent macro definitions Signed-off-by: anjiahao --- include/nuttx/serial/serial.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nuttx/serial/serial.h b/include/nuttx/serial/serial.h index 398a3f87ee..61acebd5df 100644 --- a/include/nuttx/serial/serial.h +++ b/include/nuttx/serial/serial.h @@ -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