diff options
| author | Meco Man <[email protected]> | 2021-11-15 11:22:49 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-16 00:57:56 -0500 |
| commit | 973f25901c641f01b19b065a1e263533fc4d8755 (patch) | |
| tree | 3e4e095bb0d1b4bd1b458f865ec7bf975594bc17 /components/dfs/src/dfs.c | |
| parent | 0bcab2892a81960ceb394b5cde4bc78eed3326eb (diff) | |
[dfs] move dfs back
Diffstat (limited to 'components/dfs/src/dfs.c')
| -rw-r--r-- | components/dfs/src/dfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 29b2068a6c..47ea0b0a23 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -34,7 +34,6 @@ char working_directory[DFS_PATH_MAX] = {"/"}; #endif static struct dfs_fdtable _fdtab; -static int fd_alloc(struct dfs_fdtable *fdt, int startfd); /** * @addtogroup DFS @@ -118,6 +117,7 @@ void dfs_unlock(void) rt_mutex_release(&fslock); } +#ifdef DFS_USING_POSIX static int fd_alloc(struct dfs_fdtable *fdt, int startfd) { int idx; @@ -276,6 +276,8 @@ void fd_put(struct dfs_fd *fd) dfs_unlock(); } +#endif /* DFS_USING_POSIX */ + /** * @ingroup Fd * |
