about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-02-02T11·57+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-02-02T11·57+0000
commit2723d9b56e2ea15c0c753ae579849806102f4ce0 (patch)
tree18e38b8e19f4e3e4bbf6364ed04a6f7f641107fd /src/libutil
parent07ffdc28629e537c3811f86b83a93655b73909ec (diff)
* If fdatasync() isn't available, use fsync().
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 837382433af9..90132da73317 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -12,6 +12,10 @@
 
 #include <cstdio>
 
+#ifndef HAVE_FDATASYNC
+#define fdatasync fsync
+#endif
+
 
 namespace nix {