From 53f47721153bcf2ef6c508e770ecbad0191fce26 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 15 Jun 2019 12:45:25 +0200 Subject: [PATCH] darwin: fix build error with macos 10.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit F_BARRIERFSYNC isn't defined when building on that platform. PR-URL: https://github.com/libuv/libuv/pull/2334 Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- src/unix/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/fs.c b/src/unix/fs.c index 0d6bfc69c..d5433ad25 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -168,7 +168,7 @@ static ssize_t uv__fs_fsync(uv_fs_t* req) { r = fcntl(req->file, F_FULLFSYNC); if (r != 0) - r = fcntl(req->file, F_BARRIERFSYNC); /* fsync + barrier */ + r = fcntl(req->file, 85 /* F_BARRIERFSYNC */); /* fsync + barrier */ if (r != 0) r = fsync(req->file); return r;