diff options
| author | Meco Man <[email protected]> | 2021-12-26 09:41:24 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-12-30 01:27:25 +0800 |
| commit | ed09f38012131850cd67c1392554653b56a37341 (patch) | |
| tree | 63336abe8aac0d277e48c7286e3f303b88b35357 /components/libc/compilers/dlib/syscall_close.c | |
| parent | 5925abce3ea69ad1e8db468c4015a6e76e217bb9 (diff) | |
[libc] remove RT_USING_LIBC
Diffstat (limited to 'components/libc/compilers/dlib/syscall_close.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_close.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_close.c b/components/libc/compilers/dlib/syscall_close.c index 30ee6f2388..9ac60076f4 100644 --- a/components/libc/compilers/dlib/syscall_close.c +++ b/components/libc/compilers/dlib/syscall_close.c @@ -10,6 +10,10 @@ #include <rtthread.h> #include <LowLevelIOInterface.h> #include <unistd.h> +#include <compiler_private.h> +#define DBG_TAG "dlib.syscall.close" +#define DBG_LVL DBG_INFO +#include <rtdbg.h> /* * The "__close" function should close the file corresponding to @@ -27,6 +31,7 @@ int __close(int handle) #ifdef DFS_USING_POSIX return close(handle); #else + LOG_W(warning_without_fs); return _LLIO_ERROR; #endif /* DFS_USING_POSIX */ } |
