summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-22 18:42:04 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-22 18:42:04 (GMT)
commite771330dd4217eb1c67af435aabee8ea15360015 (patch)
treed56da299a5d86475223987af36c4041339fe84a6
parentd45f0d719e0be324959d7ba5e9d84596592fc19a (diff)
downloadCMake-e771330dd4217eb1c67af435aabee8ea15360015.zip
CMake-e771330dd4217eb1c67af435aabee8ea15360015.tar.gz
CMake-e771330dd4217eb1c67af435aabee8ea15360015.tar.bz2
bootstrap: Fix libuv target platform conditions on macOS
In commit 714ce72882 (bootstrap: Make libuv available during bootstrap, 2017-09-13, v3.10.0-rc1~106^2) we modified libuv to use POSIX interfaces during bootstrap. However, some code still expects `TARGET_OS_IPHONE` to be defined on Apple platforms to either `0` or `1`. In order to offer this, include `<TargetConditionals.h>` on Apple platforms even when bootstrapping.
-rw-r--r--Utilities/cmlibuv/include/uv/unix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/include/uv/unix.h b/Utilities/cmlibuv/include/uv/unix.h
index 82778ff..f30562e 100644
--- a/Utilities/cmlibuv/include/uv/unix.h
+++ b/Utilities/cmlibuv/include/uv/unix.h
@@ -47,6 +47,9 @@
#ifdef CMAKE_BOOTSTRAP
# include "posix.h"
+# if defined(__APPLE__)
+# include <TargetConditionals.h>
+# endif
#elif defined(__linux__)
# include "linux.h"
#elif defined (__MVS__)