From f435538576878cca81af42e34979a6e4125fe136 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 13 Feb 2010 12:57:13 +1100 Subject: libreplace: add fdatasync() if not available --- lib/replace/replace.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/replace/replace.h') 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 */ -- cgit