summaryrefslogtreecommitdiffstats
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-13 12:57:13 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-13 22:36:11 +1100
commitf435538576878cca81af42e34979a6e4125fe136 (patch)
treec5897c123fa7968e65d8b4e983a2c0eecc1b9142 /lib/replace/replace.h
parent63844609dafb58860a4058bbd7fee10b1f69876b (diff)
downloadsamba-f435538576878cca81af42e34979a6e4125fe136.tar.gz
samba-f435538576878cca81af42e34979a6e4125fe136.tar.xz
samba-f435538576878cca81af42e34979a6e4125fe136.zip
libreplace: add fdatasync() if not available
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 */