diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-16 19:53:17 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-19 11:22:35 +1100 |
commit | ec90b249ecbd415c931630070b0831c6cf86d2d4 (patch) | |
tree | f33e0bdaed4d684db54bcc5151ddbbd84cae721e /lib/replace/libreplace.m4 | |
parent | 1ac19c1ca3164dc6a1b29ce81047bab81a9af918 (diff) | |
download | samba-ec90b249ecbd415c931630070b0831c6cf86d2d4.tar.gz |
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/libreplace.m4')
-rw-r--r-- | lib/replace/libreplace.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 index 0d716e0abe0..3dd64ef8b87 100644 --- a/lib/replace/libreplace.m4 +++ b/lib/replace/libreplace.m4 @@ -115,6 +115,7 @@ AC_CHECK_FUNCS(fdatasync,,[ [libreplace_cv_HAVE_FDATASYNC_IN_LIBRT=yes AC_DEFINE(HAVE_FDATASYNC, 1, Define to 1 if there is support for fdatasync)]) ]) +AC_HAVE_DECL(fdatasync, [#include <unistd.h>]) AC_CHECK_FUNCS(clock_gettime,libreplace_cv_have_clock_gettime=yes,[ AC_CHECK_LIB(rt, clock_gettime, [libreplace_cv_HAVE_CLOCK_GETTIME_IN_LIBRT=yes |