소스 검색

Merge pull request #3945 from mysterywolf/getline3

将posix_getline.h termios.h 头文件包含从<>改为""以防止路径出现分歧
Bernard Xiong 4 년 전
부모
커밋
b1f528ea69
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      components/libc/compilers/common/unistd.c
  2. 2 2
      components/libc/getline/README.md
  3. 1 1
      components/libc/getline/posix_getline.c

+ 1 - 1
components/libc/compilers/common/unistd.c

@@ -11,7 +11,7 @@
 #include <unistd.h>
 
 #ifdef RT_USING_POSIX_TERMIOS
-#include <termios.h>
+#include "termios.h"
 
 int isatty(int fd)
 {

+ 2 - 2
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 
 

+ 1 - 1
components/libc/getline/posix_getline.c

@@ -10,7 +10,7 @@
  * Meco Man    2020-09-03    First Version
  */
 
-#include <posix_getline.h>
+#include "posix_getline.h"
 #include <stdlib.h>
 #include <errno.h>
 #include <rtlibc.h>