libreplace: add fdatasync() if not available
[ira/wip.git] / lib / replace / replace.h
index baf2368130c6342af2d164c0442a88e5d2d59199..a4ef231385ef73cfd53b9f49198d609c98a91352 100644 (file)
@@ -729,4 +729,8 @@ char *ufc_crypt(const char *key, const char *salt);
 #endif
 #endif
 
+#ifndef HAVE_FDATASYNC
+#define fdatasync(fd) fsync(fd)
+#endif
+
 #endif /* _LIBREPLACE_REPLACE_H */