]> xenbits.xensource.com Git - libvirt.git/commit
build: work around lack of MacOS fdatasync
authorEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 15:12:07 +0000 (09:12 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 23:42:28 +0000 (17:42 -0600)
commit1726a736fbb59b74118e1181043b0a356c8bfd5b
treef6e7fdbd90a41cf64b11f242e527bbf0ffddb807
parent8e44e5593eb9b89fbc0b54fde15f130707a0d81e
build: work around lack of MacOS fdatasync

Mingw lacks fsync, but gnulib provides that.  Meanwhile, gnulib does
not (yet) provide fdatasync, so this is a quick hack to fake that
function on MacOS X; we can revert this configure change once gnulib
gives us a real module.

We have been implicitly relying on gnulib's largefile module being
pulled in by other modules, but it's better to make that explicit.

* bootstrap.conf (gnulib_modules): Add fsync.  Make largefile use
explicit.
* configure.ac (AC_CHECK_FUNCS_ONCE): Check for fdatasync, and
fake it with fsync when not present.
bootstrap.conf
configure.ac