Showing with 4 additions and 2 deletions.
  1. +4 −2 src/unix/fs.c
@@ -98,10 +98,12 @@


static ssize_t uv__fs_fdatasync(uv_fs_t* req) {
#if defined(__APPLE__) && defined(F_FULLFSYNC)
#if defined(__linux__) || defined(__sun) || defined(__NetBSD__)
return fdatasync(req->file);
#elif defined(__APPLE__) && defined(F_FULLFSYNC)
return fcntl(req->file, F_FULLFSYNC);
#else
return fdatasync(req->file);
return fsync(req->file);
#endif
}