From a9910a780edc43df6b64bcd13c37785a15ec3428 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 26 Oct 2021 00:51:32 -0400 Subject: [posix][libc] 优化libc中posix结构 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/src/dfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/dfs/src') diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index fa93afd749..8cf642a2f9 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -18,7 +18,7 @@ #include #endif -#ifdef RT_USING_LIBC +#ifdef RT_LIBC_USING_FILEIO #include #endif @@ -216,7 +216,7 @@ struct dfs_fd *fd_get(int fd) struct dfs_fd *d; struct dfs_fdtable *fdt; -#ifdef RT_USING_LIBC +#ifdef RT_LIBC_USING_FILEIO if ((0 <= fd) && (fd <= 2)) fd = libc_stdio_get_console(); #endif -- cgit v1.3.1