mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
Fix more -Wundef, in darwin context
This commit is contained in:
parent
bd2d5b7335
commit
615344fdf0
17 changed files with 56 additions and 56 deletions
|
|
@ -113,7 +113,7 @@ void AutoCloseFD::fsync() const
|
|||
|
||||
void AutoCloseFD::startFsync() const
|
||||
{
|
||||
#if __linux__
|
||||
#ifdef __linux__
|
||||
if (fd != -1) {
|
||||
/* Ignore failure, since fsync must be run later anyway. This is just a performance optimization. */
|
||||
::sync_file_range(fd, 0, 0, SYNC_FILE_RANGE_WRITE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue