summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index baf2368130..a4ef231385 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -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 */