]> mj.ucw.cz Git - libucw.git/blobdiff - lib/lfs.h
tried parametrized fastbuf for most of indexing I/O
[libucw.git] / lib / lfs.h
index 274b72a743553c5fe239cd56dcd4a764bb8016ab..3896c0e61d2655d4b1b0224f54a1593ad04495dd 100644 (file)
--- a/lib/lfs.h
+++ b/lib/lfs.h
@@ -41,6 +41,12 @@ typedef struct stat sh_stat_t;
 
 #endif /* !CONFIG_LFS */
 
 
 #endif /* !CONFIG_LFS */
 
+#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0)
+#define sh_fdatasync fdatasync
+#else
+#define sh_fdatasync fsync
+#endif
+
 #define HAVE_PREAD
 
 static inline sh_off_t
 #define HAVE_PREAD
 
 static inline sh_off_t