diff options
| author | Meco Man <[email protected]> | 2022-08-17 09:55:03 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-08-17 23:48:05 -0400 |
| commit | b04076d8aa49c7f795ec5825df06f07aaaca4c7a (patch) | |
| tree | 2d901f4d42e95dec64c1ba67569ed0a41ab8b780 /components/libc/compilers | |
| parent | 89f40696ffd4f2be93237d12deece706afe3a94c (diff) | |
[armlibc] solve the compiling error
report in #6300
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/armlibc/syscalls.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ } /* |
