Browse Source

[newlib] Remove compiling warning.

bernard 11 years ago
parent
commit
8336654059
1 changed files with 8 additions and 0 deletions
  1. 8 0
      components/libc/newlib/syscalls.c

+ 8 - 0
components/libc/newlib/syscalls.c

@@ -3,6 +3,14 @@
 #include <sys/time.h>
 #include <rtthread.h>
 
+#ifdef RT_USING_DFS
+#include <dfs_posix.h>
+#endif
+
+#ifdef RT_USING_PTHREADS 
+#include <pthread.h>
+#endif
+
 /* Reentrant versions of system calls.  */
 
 int