You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/17 09:07:03 UTC
[incubator-nuttx] branch master updated: add include to esp32c3_usbserial.c
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang 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 1adef79c24 add include <nuttx/fs/ioctl.h> to esp32c3_usbserial.c
1adef79c24 is described below
commit 1adef79c24f89053fe3f67b27b24305d306b04e8
Author: teknokita <to...@gmail.com>
AuthorDate: Fri Sep 16 15:24:17 2022 +0700
add include <nuttx/fs/ioctl.h> to esp32c3_usbserial.c
undeclare TCGETS on esp32c3 when enable usbserial and termios
error:
chip/esp32c3_usbserial.c: In function 'esp32c3_ioctl':
chip/esp32c3_usbserial.c:411:10: error: 'TCGETS' undeclared (first use in this function)
---
arch/risc-v/src/esp32c3/esp32c3_usbserial.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/risc-v/src/esp32c3/esp32c3_usbserial.c b/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
index 84702daa04..40879f126a 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
@@ -32,6 +32,7 @@
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
+# include <nuttx/fs/ioctl.h>
#endif
#include <nuttx/arch.h>