diff options
Diffstat (limited to 'components/libc/newlib/libc.c')
| -rw-r--r-- | components/libc/newlib/libc.c | 7 |
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 |
