소스 검색

[armlibc] solve the compiling error

report in #6300
Meco Man 3 년 전
부모
커밋
b04076d8aa
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      components/libc/compilers/armlibc/syscalls.c

+ 5 - 0
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 */
 }
 
 /*