* If fdatasync() isn't available, use fsync().
This commit is contained in:
parent
07ffdc2862
commit
2723d9b56e
2 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
|
||||
#include <cstdio>
|
||||
|
||||
#ifndef HAVE_FDATASYNC
|
||||
#define fdatasync fsync
|
||||
#endif
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
Loading…
Reference in a new issue