mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
fix compiling warning in finsh shell
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user