From 8601850a2171f352875b08b03ac34cf9d722bb92 Mon Sep 17 00:00:00 2001 From: roger Date: Mon, 30 Mar 2020 15:21:58 +0800 Subject: 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 75c876dd33..6312529abb 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 4f556d79d9..6d4be129ff 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" { -- cgit v1.3.1 From 63a82cac479da5bcca612de4f6817d6075b59023 Mon Sep 17 00:00:00 2001 From: roger Date: Mon, 30 Mar 2020 15:59:44 +0800 Subject: 在posix_termios.c中引用termios.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 6312529abb..f25048e652 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) { -- cgit v1.3.1 From a3d6d4722517c5cb4c798b3b5ce0237c0d896535 Mon Sep 17 00:00:00 2001 From: roger Date: Tue, 31 Mar 2020 09:35:13 +0800 Subject: 祛除了不必要的格式修改 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 f25048e652..75c876dd33 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) { -- cgit v1.3.1