Merge branch 'master' of https://github.com/RT-Thread/rt-thread
This commit is contained in:
commit
44be0f6369
|
@ -18,7 +18,7 @@
|
|||
#include <lwp.h>
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_DFS_DEVFS
|
||||
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
|
||||
#include <libc.h>
|
||||
#endif
|
||||
|
||||
|
@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd)
|
|||
struct dfs_fd *d;
|
||||
struct dfs_fdtable *fdt;
|
||||
|
||||
#ifdef RT_USING_DFS_DEVFS
|
||||
#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
|
||||
if ((0 <= fd) && (fd <= 2))
|
||||
fd = libc_stdio_get_console();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue