summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-16 19:53:17 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-19 11:22:35 +1100
commitec90b249ecbd415c931630070b0831c6cf86d2d4 (patch)
treef33e0bdaed4d684db54bcc5151ddbbd84cae721e /lib/replace/replace.h
parent1ac19c1ca3164dc6a1b29ce81047bab81a9af918 (diff)
downloadsamba-ec90b249ecbd415c931630070b0831c6cf86d2d4.tar.gz
samba-ec90b249ecbd415c931630070b0831c6cf86d2d4.tar.bz2
samba-ec90b249ecbd415c931630070b0831c6cf86d2d4.zip
replace: cope with systems that have fdatasync(), but don't have the prototype
this is needed for MacOSX 10.4.1
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 8fde16c52d..10c7ee701c 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -756,6 +756,8 @@ char *ufc_crypt(const char *key, const char *salt);
#ifndef HAVE_FDATASYNC
#define fdatasync(fd) fsync(fd)
+#elif !defined(HAVE_DECL_FDATASYNC)
+int fdatasync(int );
#endif
/* these are used to mark symbols as local to a shared lib, or