Skip to content

Commit b04076d

Browse files
committed
[armlibc] solve the compiling error
report in #6300
1 parent 89f4069 commit b04076d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/libc/compilers/armlibc/syscalls.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode)
253253
*/
254254
int _sys_ensure(FILEHANDLE fh)
255255
{
256+
#ifdef DFS_USING_POSIX
256257
return fsync(fh);
258+
#else
259+
LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS);
260+
return 0; /* error */
261+
#endif /* DFS_USING_POSIX */
257262
}
258263

259264
/*

0 commit comments

Comments
 (0)