From 5954eadf6741e0b4cdab23c414d7a6b470cd06db Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Feb 2010 12:16:50 +0000 Subject: * Remove the fdatasync check since it's no longer needed. --- src/libutil/util.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/libutil/util.hh') 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 -#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); -- cgit 1.4.1