]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: use gnulib fdatasync
authorEric Blake <eblake@redhat.com>
Mon, 24 Oct 2011 22:40:05 +0000 (16:40 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 25 Oct 2011 15:48:34 +0000 (09:48 -0600)
Commit 1726a73 hacked around MacOS' lack of fdatasync, since
gnulib did not have it at the time.  But now that we use newer
gnulib, we can avoid the hack.

* bootstrap.conf (gnulib_modules): Add fdatasync.
* configure.ac (AC_CHECK_FUNCS_ONCE): Drop our own check.

bootstrap.conf
configure.ac

index d029253d3a81dc779b0a02f959c1dc8beba9498c..0faa2e2217f830a468dcd88d383a23ba1a9f67a4 100644 (file)
@@ -40,6 +40,7 @@ environ
 fclose
 fcntl
 fcntl-h
+fdatasync
 ffs
 fnmatch
 fsync
index df19445974897486b2bb4711d34f18124c8eba8c..6a0936a9ba24f5ce2812a42311c44f2acf37e8f0 100644 (file)
@@ -135,12 +135,9 @@ AC_CHECK_SIZEOF([long])
 
 dnl Availability of various common functions (non-fatal if missing),
 dnl and various less common threadsafe functions
-AC_CHECK_FUNCS_ONCE([cfmakeraw fdatasync geteuid getgid getgrnam_r getmntent_r \
+AC_CHECK_FUNCS_ONCE([cfmakeraw geteuid getgid getgrnam_r getmntent_r \
   getpwuid_r getuid initgroups kill mmap posix_fallocate posix_memalign \
   regexec sched_getaffinity])
-if test $ac_cv_func_fdatasync = no; then
-  AC_DEFINE([fdatasync], [fsync], [Define to fsync if you lack fdatasync])
-fi
 
 dnl Availability of pthread functions (if missing, win32 threading is
 dnl assumed).  Because of $LIB_PTHREAD, we cannot use AC_CHECK_FUNCS_ONCE.