summaryrefslogtreecommitdiff
path: root/components/libc/posix/src
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-07 21:40:19 -0500
committerMeco Man <[email protected]>2021-11-07 23:41:16 -0500
commitf8388c572ef9969105b895cba3c55ba8d24efeda (patch)
treeae71b5dace91c0217740a80eb8a7d99133f1e088 /components/libc/posix/src
parent251e17b41ac56a877e0278394588aa6b129b66b1 (diff)
add RT_USING_POSIX_STDIO
Diffstat (limited to 'components/libc/posix/src')
-rw-r--r--components/libc/posix/src/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript
index 4c6d3e3b7b..24c4ede4e1 100644
--- a/components/libc/posix/src/SConscript
+++ b/components/libc/posix/src/SConscript
@@ -2,10 +2,13 @@
from building import *
-src = ['libc.c', 'unistd.c']
+src = ['unistd.c']
cwd = GetCurrentDir()
CPPPATH = [cwd]
+if GetDepend('RT_USING_POSIX_STDIO'):
+ src += ['libc.c']
+
if GetDepend('RT_USING_POSIX_POLL'):
src += ['poll.c']