1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

* Don't use fdatasync since it doesn't work on Snow Leopard.

* Don't refer to config.h in util.hh, because config.h is not
  installed (http://hydra.nixos.org/build/303053).
This commit is contained in:
Eelco Dolstra 2010-02-24 15:46:06 +00:00
parent 7db2831d3a
commit 84a4dd5ff0
4 changed files with 3 additions and 10 deletions

View file

@ -233,7 +233,7 @@ void writeFile(const Path & path, const string & s, bool doFsync)
if (fd == -1)
throw SysError(format("opening file `%1%'") % path);
writeFull(fd, (unsigned char *) s.c_str(), s.size());
if (doFsync) fdatasync(fd);
if (doFsync) fsync(fd);
}