summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/syscall_read.c
diff options
context:
space:
mode:
authorWayne <[email protected]>2021-11-15 11:28:34 +0800
committerGitHub <[email protected]>2021-11-15 11:28:34 +0800
commit17cbdda13da4b4ca7643ad729b2ba1b138009fd3 (patch)
tree685fc3f6ce9d42aff6230f534745152519e76ff5 /components/libc/compilers/dlib/syscall_read.c
parentc07b2b0a07a25b6bdecaacef9ad229fbd5f3fd37 (diff)
parent5711b0a76b8d80ab2dc4cdbf925a7b48f4140a5d (diff)
Merge branch 'RT-Thread:master' into nuvoton
Diffstat (limited to 'components/libc/compilers/dlib/syscall_read.c')
-rw-r--r--components/libc/compilers/dlib/syscall_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_read.c b/components/libc/compilers/dlib/syscall_read.c
index 74cedb966a..c926c577b5 100644
--- a/components/libc/compilers/dlib/syscall_read.c
+++ b/components/libc/compilers/dlib/syscall_read.c
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <yfuns.h>
#include <unistd.h>
-#ifdef RT_USING_POSIX
+#ifdef RT_USING_POSIX_STDIO
#include "libc.h"
#endif
@@ -22,7 +22,7 @@
#pragma module_name = "?__read"
size_t __read(int handle, unsigned char *buf, size_t len)
{
-#ifdef RT_USING_POSIX
+#ifdef RT_USING_POSIX_STDIO
int size;
if (handle == _LLIO_STDIN)