diff options
| author | 192.168.1.134 <[email protected]> | 2021-11-08 15:02:29 +0800 |
|---|---|---|
| committer | 192.168.1.134 <[email protected]> | 2021-11-08 15:02:29 +0800 |
| commit | 85da2247c050ff16842eba5927fc34a06564c5dc (patch) | |
| tree | d489fbe3078ed99096210087be80759dd515d703 /components/dfs/src | |
| parent | 078c3c5991e3024664fe7a51878874e02bf107dc (diff) | |
| parent | 9e7d7ae52544fd8e84f18734fd4216fc7659d9c9 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/dfs/src')
| -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 fa93afd749..ed8d8094aa 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -18,9 +18,9 @@ #include <lwp.h> #endif -#ifdef RT_USING_LIBC +#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_USING_LIBC +#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; |
