summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/libc/Kconfig8
-rw-r--r--components/libc/getline/SConscript2
-rw-r--r--include/libc/libc_stdio.h2
3 files changed, 8 insertions, 4 deletions
diff --git a/components/libc/Kconfig b/components/libc/Kconfig
index 26e156522b..65c8d44225 100644
--- a/components/libc/Kconfig
+++ b/components/libc/Kconfig
@@ -22,11 +22,15 @@ if RT_USING_LIBC && RT_USING_DFS
if RT_USING_POSIX
config RT_USING_POSIX_MMAP
- bool "Enable mmap() api"
+ bool "Enable mmap() API"
default n
config RT_USING_POSIX_TERMIOS
- bool "Enable termios feature"
+ bool "Enable termios APIs"
+ default n
+
+ config RT_USING_POSIX_GETLINE
+ bool "Enable getline()/getdelim() APIs"
default n
config RT_USING_POSIX_AIO
diff --git a/components/libc/getline/SConscript b/components/libc/getline/SConscript
index 7bede9f31b..fa4c8618c1 100644
--- a/components/libc/getline/SConscript
+++ b/components/libc/getline/SConscript
@@ -7,7 +7,7 @@ src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd]
group = DefineGroup('libc', src,
- depend = ['RT_USING_LIBC', 'RT_USING_POSIX'],
+ depend = ['RT_USING_LIBC', 'RT_USING_POSIX','RT_USING_POSIX_GETLINE'],
CPPPATH = CPPPATH)
Return('group')
diff --git a/include/libc/libc_stdio.h b/include/libc/libc_stdio.h
index 6201b85ea4..4a09f5c3d7 100644
--- a/include/libc/libc_stdio.h
+++ b/include/libc/libc_stdio.h
@@ -15,7 +15,7 @@
#ifndef LIBC_STDIO_H__
#define LIBC_STDIO_H__
-#ifdef RT_USING_POSIX
+#ifdef RT_USING_POSIX_GETLINE
#include <posix_getline.h>