From 8601850a2171f352875b08b03ac34cf9d722bb92 Mon Sep 17 00:00:00 2001 From: roger Date: Mon, 30 Mar 2020 15:21:58 +0800 Subject: [PATCH 1/3] first commit --- components/libc/termios/posix_termios.c | 2 -- components/libc/termios/posix_termios.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c index 75c876dd33a..6312529abb3 100644 --- a/components/libc/termios/posix_termios.c +++ b/components/libc/termios/posix_termios.c @@ -12,8 +12,6 @@ #include #include -#include - int tcgetattr(int fd, struct termios *tio) { /* Get the current serial port settings. */ diff --git a/components/libc/termios/posix_termios.h b/components/libc/termios/posix_termios.h index 4f556d79d97..6d4be129ffc 100644 --- a/components/libc/termios/posix_termios.h +++ b/components/libc/termios/posix_termios.h @@ -11,6 +11,7 @@ #define TERMIOS_H__ #include +#include #ifdef __cplusplus extern "C" { From 63a82cac479da5bcca612de4f6817d6075b59023 Mon Sep 17 00:00:00 2001 From: roger Date: Mon, 30 Mar 2020 15:59:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9C=A8posix=5Ftermios.c=E4=B8=AD?= =?UTF-8?q?=E5=BC=95=E7=94=A8termios.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/termios/posix_termios.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c index 6312529abb3..f25048e652a 100644 --- a/components/libc/termios/posix_termios.c +++ b/components/libc/termios/posix_termios.c @@ -11,6 +11,8 @@ #include #include #include +#include + int tcgetattr(int fd, struct termios *tio) { From a3d6d4722517c5cb4c798b3b5ce0237c0d896535 Mon Sep 17 00:00:00 2001 From: roger Date: Tue, 31 Mar 2020 09:35:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=A5=9B=E9=99=A4=E4=BA=86=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/termios/posix_termios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c index f25048e652a..75c876dd33a 100644 --- a/components/libc/termios/posix_termios.c +++ b/components/libc/termios/posix_termios.c @@ -11,8 +11,8 @@ #include #include #include -#include +#include int tcgetattr(int fd, struct termios *tio) {