summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-06-19 10:52:19 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-19 10:57:38 (GMT)
commitdb4667cc727fd7e52f6731642501e680922f72e7 (patch)
treea35e309fa5f9e9bb36a2117aeafe5e5b4c127672 /Utilities/cmlibuv/src
parentcee57246ef03ba5c2a6e67b472d2d1f8946c4f75 (diff)
downloadCMake-db4667cc727fd7e52f6731642501e680922f72e7.zip
CMake-db4667cc727fd7e52f6731642501e680922f72e7.tar.gz
CMake-db4667cc727fd7e52f6731642501e680922f72e7.tar.bz2
libuv: fix compilation with macOS 10.10 SDK
The `F_BARRIERFSYNC` constant was not added until the macOS 10.11 SDK. Hard-code its value instead. This approach is backported from upstream libuv PR 2334.
Diffstat (limited to 'Utilities/cmlibuv/src')
-rw-r--r--Utilities/cmlibuv/src/unix/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/fs.c b/Utilities/cmlibuv/src/unix/fs.c
index 48500ff..3023b1e 100644
--- a/Utilities/cmlibuv/src/unix/fs.c
+++ b/Utilities/cmlibuv/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;