mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02:00
Fix more -Wundef, in darwin context
This commit is contained in:
parent
2b51250534
commit
ba89da8fa2
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