From 7984d9cbabcff4a2d61954406189aed3fbef5dd5 Mon Sep 17 00:00:00 2001 From: Eugene San Date: Sat, 23 Nov 2013 14:19:34 +0200 Subject: [PATCH] disable fdatasync on OSX --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d5be21f..1898249 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,9 @@ m4_include([m4/cxx11.m4]) AX_CXX_COMPILE_STDCXX_11([noext]) AC_CHECK_LIB([mtp], [LIBMTP_Init], [], [AC_MSG_ERROR([libmtp not found])]) AC_CHECK_HEADERS([libmtp.h]) -AC_CHECK_FUNCS([fdatasync]) + +dnl Enable fdatasync, but not on OSX +test `uname -s` == "Darwin" || AC_CHECK_FUNCS([fdatasync]) PKG_CHECK_MODULES([FUSE], [fuse >= 2.7.3]) AC_SUBST([FUSE_CFLAGS])