diff options
| author | guo <[email protected]> | 2021-10-27 18:06:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-27 18:06:54 +0800 |
| commit | 4107d7bea262df2733a7ffe61e7dfa11ea787ee4 (patch) | |
| tree | 521e54c6108476c31de1ced356acbacbc58711dd /components/dfs | |
| parent | 00c39bb960a90003756801a0058f7d3dee2e03bc (diff) | |
| parent | 372858f921785d0bae370be687995c2147218fca (diff) | |
Merge pull request #5236 from mysterywolf/posix
[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/src/dfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 8cf642a2f9..ed8d8094aa 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -18,9 +18,9 @@ #include <lwp.h> #endif -#ifdef RT_LIBC_USING_FILEIO +#ifdef RT_USING_POSIX #include <libc.h> -#endif +#endif /* RT_USING_POSIX */ /* 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_LIBC_USING_FILEIO +#ifdef RT_USING_POSIX if ((0 <= fd) && (fd <= 2)) fd = libc_stdio_get_console(); -#endif +#endif /* RT_USING_POSIX */ fdt = dfs_fdtable_get(); fd = fd - DFS_FD_OFFSET; |
