summaryrefslogtreecommitdiff
path: root/components/libc/newlib/libc.c
diff options
context:
space:
mode:
authoruser <user@lubuntu.(none)>2013-04-04 14:12:35 -0400
committeruser <user@lubuntu.(none)>2013-04-04 14:12:35 -0400
commit06c6630bbfbf7a0b82ebf22d63bc2fc9aca3bdb9 (patch)
tree7ec482d541d79d9a7a2e0c01fccb7d26f59af8d4 /components/libc/newlib/libc.c
parent009eccf640a96762b6d8610c0f63497a9bf90c33 (diff)
fix compiling warning in finsh shell
Diffstat (limited to 'components/libc/newlib/libc.c')
-rw-r--r--components/libc/newlib/libc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c
index 797c393db8..f7bb8e3f9b 100644
--- a/components/libc/newlib/libc.c
+++ b/components/libc/newlib/libc.c
@@ -5,12 +5,15 @@
#include <sys/time.h>
#include "libc.h"
+#ifdef RT_USING_PTHREADS
+#include <pthread.h>
+#endif
+
void libc_system_init(const char* tty_name)
{
+#ifdef RT_USING_DFS
int fd;
- extern int pthread_system_init(void);
-#ifdef RT_USING_DFS
#ifndef RT_USING_DFS_DEVFS
#error Please enable devfs by defining RT_USING_DFS_DEVFS in rtconfig.h
#endif