From 96acad78ba50c636a95ffa17dd9e05444908a3a5 Mon Sep 17 00:00:00 2001 From: mysterywolf <920369182@qq.com> Date: Sat, 3 Oct 2020 00:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86posix=5Fgetline.h=20termios.h=20?= =?UTF-8?q?=E5=A4=B4=E6=96=87=E4=BB=B6=E5=8C=85=E5=90=AB=E4=BB=8E<>?= =?UTF-8?q?=E6=94=B9=E4=B8=BA""=E4=BB=A5=E9=98=B2=E6=AD=A2=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=87=BA=E7=8E=B0=E5=88=86=E6=AD=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/unistd.c | 2 +- components/libc/getline/README.md | 4 ++-- components/libc/getline/posix_getline.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/libc/compilers/common/unistd.c b/components/libc/compilers/common/unistd.c index 4068fc5cf5..df970b2b59 100644 --- a/components/libc/compilers/common/unistd.c +++ b/components/libc/compilers/common/unistd.c @@ -11,7 +11,7 @@ #include #ifdef RT_USING_POSIX_TERMIOS -#include +#include "termios.h" int isatty(int fd) { diff --git a/components/libc/getline/README.md b/components/libc/getline/README.md index 3ba5a96b3d..0b279755d3 100644 --- a/components/libc/getline/README.md +++ b/components/libc/getline/README.md @@ -11,9 +11,7 @@ These are ersatz functions, a drop-in replacement, to be used on those occasions For more details, see [Open Group Base Specification for getdelim/getline][opengroup-spec]. -## Building the project -Just run `make`. ## License @@ -22,6 +20,8 @@ This code is unlicensed -- free and released into the public domain. See `UNLICE [opengroup-spec]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/getline.html + + ## 联系&维护 Meco Man diff --git a/components/libc/getline/posix_getline.c b/components/libc/getline/posix_getline.c index 2c60ca7647..e2ac278242 100644 --- a/components/libc/getline/posix_getline.c +++ b/components/libc/getline/posix_getline.c @@ -10,7 +10,7 @@ * Meco Man 2020-09-03 First Version */ -#include +#include "posix_getline.h" #include #include #include