fix compiling warning in finsh shell

This commit is contained in:
user
2013-04-04 14:12:35 -04:00
parent 009eccf640
commit 06c6630bbf
4 changed files with 14 additions and 38 deletions

View File

@@ -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)
{
int fd;
extern int pthread_system_init(void);
#ifdef RT_USING_DFS
int fd;
#ifndef RT_USING_DFS_DEVFS
#error Please enable devfs by defining RT_USING_DFS_DEVFS in rtconfig.h
#endif