提交 44be0f63 编写于 作者: B Bernard Xiong

Merge branch 'master' of https://github.com/RT-Thread/rt-thread

...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <lwp.h> #include <lwp.h>
#endif #endif
#ifdef RT_USING_DFS_DEVFS #if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
#include <libc.h> #include <libc.h>
#endif #endif
...@@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd) ...@@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd)
struct dfs_fd *d; struct dfs_fd *d;
struct dfs_fdtable *fdt; struct dfs_fdtable *fdt;
#ifdef RT_USING_DFS_DEVFS #if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
if ((0 <= fd) && (fd <= 2)) if ((0 <= fd) && (fd <= 2))
fd = libc_stdio_get_console(); fd = libc_stdio_get_console();
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册