Skip to content

Commit

Permalink
darwin: replace F_FULLFSYNC with fdatasync syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Feb 24, 2016
1 parent 12548de commit 80cfad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
static ssize_t uv__fs_fdatasync(uv_fs_t* req) {
#if defined(__linux__) || defined(__sun) || defined(__NetBSD__)
return fdatasync(req->file);
#elif defined(__APPLE__) && defined(F_FULLFSYNC)
return fcntl(req->file, F_FULLFSYNC);
#elif defined(__APPLE__) && defined(SYS_fdatasync)
return syscall(SYS_fdatasync, req->file);
#else
return fsync(req->file);
#endif
Expand Down

0 comments on commit 80cfad6

Please sign in to comment.