From 06c6630bbfbf7a0b82ebf22d63bc2fc9aca3bdb9 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 4 Apr 2013 14:12:35 -0400 Subject: fix compiling warning in finsh shell --- components/libc/newlib/libc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'components/libc') 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 #include "libc.h" +#ifdef RT_USING_PTHREADS +#include +#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 -- cgit v1.3.1