summaryrefslogtreecommitdiff
path: root/components/libc/dlib/syscall_read.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2015-01-31 21:59:58 +0800
committerbernard <[email protected]>2015-01-31 21:59:58 +0800
commit2c885336592b747fbad13c23c656934ec2913f72 (patch)
treebd8beddc6882737b5f0034d8a68f78be2ad00684 /components/libc/dlib/syscall_read.c
parent622e6d8238489b04219af34e0377b050a17a4d4c (diff)
[LIBC] fix compiling issue for dlib (IAR).
Diffstat (limited to 'components/libc/dlib/syscall_read.c')
-rw-r--r--components/libc/dlib/syscall_read.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/libc/dlib/syscall_read.c b/components/libc/dlib/syscall_read.c
index f109badb55..aa13654189 100644
--- a/components/libc/dlib/syscall_read.c
+++ b/components/libc/dlib/syscall_read.c
@@ -23,6 +23,9 @@
*/
#include <rtthread.h>
+#ifdef RT_USING_DFS
+#include <dfs_posix.h>
+#endif
#include <yfuns.h>
#pragma module_name = "?__read"
@@ -44,8 +47,7 @@ size_t __read(int handle, unsigned char *buf, size_t len)
#ifndef RT_USING_DFS
return _LLIO_ERROR;
#else
- size = read(handle - STDERR - 1, buf, len);
+ size = read(handle - _LLIO_STDERR - 1, buf, len);
return size;
#endif
}
-