summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-22 00:44:19 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-26 15:48:26 (GMT)
commit5651257fffc4482861c2ed6a67721fd00f0da6c0 (patch)
tree55ef4649abcef9127af965e3ee2ca18cd5ab5bae /Utilities/cmlibuv/src
parentbadc2c44d8d1c5367c54b2ae67aff84ecef178fe (diff)
downloadCMake-5651257fffc4482861c2ed6a67721fd00f0da6c0.zip
CMake-5651257fffc4482861c2ed6a67721fd00f0da6c0.tar.gz
CMake-5651257fffc4482861c2ed6a67721fd00f0da6c0.tar.bz2
libuv: automatically skip ifaddrs on Solaris 10
Diffstat (limited to 'Utilities/cmlibuv/src')
-rw-r--r--Utilities/cmlibuv/src/unix/sunos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/src/unix/sunos.c b/Utilities/cmlibuv/src/unix/sunos.c
index a43f7f1..14c58af 100644
--- a/Utilities/cmlibuv/src/unix/sunos.c
+++ b/Utilities/cmlibuv/src/unix/sunos.c
@@ -28,6 +28,10 @@
#include <assert.h>
#include <errno.h>
+#if !defined(SUNOS_NO_IFADDRS) && _XOPEN_SOURCE < 600
+#define SUNOS_NO_IFADDRS
+#endif
+
#ifndef SUNOS_NO_IFADDRS
# include <ifaddrs.h>
#endif