diff options
| author | Meco Jianting Man <[email protected]> | 2021-02-16 06:54:02 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-16 06:54:02 -0600 |
| commit | e19873db6d6947f02e0b093251adf3c73daabdd8 (patch) | |
| tree | a10b63a5ce4157ad2e232f70382702fe1af24946 /components/libc/compilers/dlib/syscall_remove.c | |
| parent | f0805a7973ffe62e459da7748cbada62bccf98b9 (diff) | |
| parent | 06f47dafd25e396787dffaecc777fe1210b4a82b (diff) | |
Merge pull request #17 from RT-Thread/master
pr
Diffstat (limited to 'components/libc/compilers/dlib/syscall_remove.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_remove.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/libc/compilers/dlib/syscall_remove.c b/components/libc/compilers/dlib/syscall_remove.c index e7f0268b1b..f7e64d1997 100644 --- a/components/libc/compilers/dlib/syscall_remove.c +++ b/components/libc/compilers/dlib/syscall_remove.c @@ -9,16 +9,16 @@ */ #include <rtthread.h> #ifdef RT_USING_DFS -#include <dfs_file.h> +#include <dfs_posix.h> #endif #include <yfuns.h> #pragma module_name = "?remove" int remove(const char *val) { -#ifdef RT_USING_DFS - dfs_file_unlink(val); +#ifndef RT_USING_DFS + return -1; +#else + return unlink(val); #endif - - return 0; } |
