未验证 提交 ff8a2709 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2157 from zhaojuntao/fix-dfs

[components][dfs] Refix #2100 PR
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册