diff --git a/configure.in b/configure.in index 539021d37f..7417d8d97c 100644 --- a/configure.in +++ b/configure.in @@ -786,7 +786,14 @@ AC_CHECK_FUNCS(fchmod) AC_CHECK_FUNCS(semtimedop) AC_CHECK_FUNCS(fegetenv) AC_CHECK_FUNCS(strerror_r) +case $host in + *-darwin*) + ac_cv_func_fdatasync=no + ;; + *) AC_CHECK_FUNCS(fdatasync fsync) + ;; +esac AC_CHECK_FUNCS(poll) dnl AC_CHECK_FUNCS(AO_compare_and_swap_full) AC_COMPILE_IFELSE(