diff options
| author | Meco Man <[email protected]> | 2021-10-20 21:44:01 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-10-21 19:05:53 -0400 |
| commit | f7548b934e210ea66e2734c3c6abbddcd1605f11 (patch) | |
| tree | b2c302b4baf8dd4e1f9904b62c118a71a3b9e634 /components/dfs/src/dfs_file.c | |
| parent | bcdd4a62560be546c1b82fa7fa8d6b6507f339e9 (diff) | |
[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folder
Diffstat (limited to 'components/dfs/src/dfs_file.c')
| -rw-r--r-- | components/dfs/src/dfs_file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index fa0f6000b4..978c1056c2 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -621,6 +621,7 @@ void cat(const char *filename) } FINSH_FUNCTION_EXPORT(cat, print file); +#ifdef RT_USING_POSIX #define BUF_SZ 4096 static void copyfile(const char *src, const char *dst) { @@ -749,6 +750,7 @@ static const char *_get_path_lastname(const char *path) /* skip the '/' then return */ return ++ptr; } + void copy(const char *src, const char *dst) { #define FLAG_SRC_TYPE 0x03 @@ -841,7 +843,8 @@ void copy(const char *src, const char *dst) } } FINSH_FUNCTION_EXPORT(copy, copy file or dir) +#endif /* RT_USING_POSIX */ -#endif +#endif /* RT_USING_FINSH */ /* @} */ |
