From b04076d8aa49c7f795ec5825df06f07aaaca4c7a Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 17 Aug 2022 09:55:03 -0400 Subject: [PATCH] [armlibc] solve the compiling error report in #6300 --- components/libc/compilers/armlibc/syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/libc/compilers/armlibc/syscalls.c b/components/libc/compilers/armlibc/syscalls.c index 2c53310771..26ba3796fa 100644 --- a/components/libc/compilers/armlibc/syscalls.c +++ b/components/libc/compilers/armlibc/syscalls.c @@ -253,7 +253,12 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) */ int _sys_ensure(FILEHANDLE fh) { +#ifdef DFS_USING_POSIX return fsync(fh); +#else + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); + return 0; /* error */ +#endif /* DFS_USING_POSIX */ } /* -- GitLab