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)
This commit is contained in:
teknokita 2022-09-16 15:24:17 +07:00 committed by Xiang Xiao
parent e2df52390a
commit 1adef79c24
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
# include <nuttx/fs/ioctl.h>
#endif
#include <nuttx/arch.h>