summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-25 15:36:45 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-31 13:05:13 (GMT)
commitf4f8074bec408ba0cab0f08ce1c48ad312fc0b24 (patch)
tree5f0a8f33e8736a1f47c335af5b97366b890a48d9 /Utilities/cmlibuv/src
parenta63aaaed051a51592f9ddc738febd58a4d99928a (diff)
downloadCMake-f4f8074bec408ba0cab0f08ce1c48ad312fc0b24.zip
CMake-f4f8074bec408ba0cab0f08ce1c48ad312fc0b24.tar.gz
CMake-f4f8074bec408ba0cab0f08ce1c48ad312fc0b24.tar.bz2
libuv: Avoid including macOS CoreServices header globally
We only need the availability macros in `unix/internal.h`. We already include CoreServices where needed in implementation files.
Diffstat (limited to 'Utilities/cmlibuv/src')
-rw-r--r--Utilities/cmlibuv/src/unix/internal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Utilities/cmlibuv/src/unix/internal.h b/Utilities/cmlibuv/src/unix/internal.h
index c7b6019..2570026 100644
--- a/Utilities/cmlibuv/src/unix/internal.h
+++ b/Utilities/cmlibuv/src/unix/internal.h
@@ -51,10 +51,6 @@
# include <poll.h>
#endif /* _AIX */
-#if defined(__APPLE__) && !TARGET_OS_IPHONE
-# include <CoreServices/CoreServices.h>
-#endif
-
#if defined(__ANDROID__)
int uv__pthread_sigmask(int how, const sigset_t* set, sigset_t* oset);
# ifdef pthread_sigmask
@@ -272,6 +268,7 @@ int uv__make_socketpair(int fds[2], int flags);
int uv__make_pipe(int fds[2], int flags);
#if defined(__APPLE__)
+#include <AvailabilityMacros.h>
int uv__fsevents_init(uv_fs_event_t* handle);
int uv__fsevents_close(uv_fs_event_t* handle);