* If fdatasync() isn't available, use fsync().

This commit is contained in:
Eelco Dolstra 2010-02-02 11:57:49 +00:00
parent 07ffdc2862
commit 2723d9b56e
2 changed files with 5 additions and 0 deletions

View File

@ -262,6 +262,7 @@ AC_CHECK_FUNCS([setresuid setreuid lchown])
# Nice to have, but not essential.
AC_CHECK_FUNCS([strsignal])
AC_CHECK_FUNCS([posix_fallocate])
AC_CHECK_FUNCS([fdatasync])
# This is needed if ATerm or bzip2 are static libraries,

View File

@ -12,6 +12,10 @@
#include <cstdio>
#ifndef HAVE_FDATASYNC
#define fdatasync fsync
#endif
namespace nix {