summaryrefslogtreecommitdiff
path: root/components/dfs/src/dfs.c
diff options
context:
space:
mode:
authorguo <[email protected]>2021-10-26 09:37:43 +0800
committerGitHub <[email protected]>2021-10-26 09:37:43 +0800
commit50bb6e33d13237f71812e81a6a13ba5ba0693c8f (patch)
treead7924c4e07a3748b1b83fbe57d8f7231f7635a4 /components/dfs/src/dfs.c
parentc8ee4cc67dd1815d1b0ead1bcd24156da6ab87de (diff)
parentf7548b934e210ea66e2734c3c6abbddcd1605f11 (diff)
Merge pull request #5212 from mysterywolf/posix
[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folder
Diffstat (limited to 'components/dfs/src/dfs.c')
-rw-r--r--components/dfs/src/dfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c
index 8155b088f0..fa93afd749 100644
--- a/components/dfs/src/dfs.c
+++ b/components/dfs/src/dfs.c
@@ -18,7 +18,7 @@
#include <lwp.h>
#endif
-#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
+#ifdef RT_USING_LIBC
#include <libc.h>
#endif
@@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd)
struct dfs_fd *d;
struct dfs_fdtable *fdt;
-#if defined(RT_USING_DFS_DEVFS) && defined(RT_USING_POSIX)
+#ifdef RT_USING_LIBC
if ((0 <= fd) && (fd <= 2))
fd = libc_stdio_get_console();
#endif