about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-02-24T12·16+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-02-24T12·16+0000
commit5954eadf6741e0b4cdab23c414d7a6b470cd06db (patch)
treec3cee2f30bc1a212d1563448dbde1db9efcb388f /src/libutil/util.hh
parentbb82310dba8a70b539122db20712fbd8fd9e840e (diff)
* Remove the fdatasync check since it's no longer needed.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 90132da73317..a3580b547dc6 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -12,10 +12,6 @@
 
 #include <cstdio>
 
-#ifndef HAVE_FDATASYNC
-#define fdatasync fsync
-#endif
-
 
 namespace nix {
 
@@ -66,7 +62,7 @@ string readFile(int fd);
 string readFile(const Path & path);
 
 /* Write a string to a file. */
-void writeFile(const Path & path, const string & s, bool doFsync = false);
+void writeFile(const Path & path, const string & s);
 
 /* Read a line from a file descriptor. */
 string readLine(int fd);