diff options
| author | Meco Man <[email protected]> | 2021-11-07 21:40:19 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-07 23:41:16 -0500 |
| commit | f8388c572ef9969105b895cba3c55ba8d24efeda (patch) | |
| tree | ae71b5dace91c0217740a80eb8a7d99133f1e088 /components/dfs | |
| parent | 251e17b41ac56a877e0278394588aa6b129b66b1 (diff) | |
add RT_USING_POSIX_STDIO
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/Kconfig | 2 | ||||
| -rw-r--r-- | components/dfs/src/dfs.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/components/dfs/Kconfig b/components/dfs/Kconfig index 7a4fbb655d..1ec36784d7 100644 --- a/components/dfs/Kconfig +++ b/components/dfs/Kconfig @@ -133,7 +133,7 @@ if RT_USING_DFS config RT_USING_DFS_DEVFS bool "Using devfs for device objects" - default y + default n config RT_USING_DFS_ROMFS bool "Enable ReadOnly file system on flash" diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index ed8d8094aa..29b2068a6c 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -18,9 +18,9 @@ #include <lwp.h> #endif -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_STDIO #include <libc.h> -#endif /* RT_USING_POSIX */ +#endif /* RT_USING_POSIX_STDIO */ /* Global variables */ const struct dfs_filesystem_ops *filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; @@ -216,10 +216,10 @@ struct dfs_fd *fd_get(int fd) struct dfs_fd *d; struct dfs_fdtable *fdt; -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_STDIO if ((0 <= fd) && (fd <= 2)) fd = libc_stdio_get_console(); -#endif /* RT_USING_POSIX */ +#endif /* RT_USING_POSIX_STDIO */ fdt = dfs_fdtable_get(); fd = fd - DFS_FD_OFFSET; |
