You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/07/21 07:01:50 UTC
[incubator-nuttx] branch master updated: serial:fix a compile bug
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0b3fd3b0b5 serial:fix a compile bug
0b3fd3b0b5 is described below
commit 0b3fd3b0b59db51644aba9d0c4c55306b47cf8bc
Author: anjiahao <an...@xiaomi.com>
AuthorDate: Thu Jul 21 11:16:08 2022 +0800
serial:fix a compile bug
serial_io.c use pid,but the headfile Inconsistent macro definitions
Signed-off-by: anjiahao <an...@xiaomi.com>
---
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