summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2014-07-16 14:04:42 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-17 13:43:05 (GMT)
commitfd63722dc86ec30e8a6f543881d56b3c473da34d (patch)
treea3199bf9151c32fc092503ed3e3201cab146a8c4 /Utilities
parent55d6aa36a522f2dd7849ccd53d9e743a88f8c7a1 (diff)
downloadCMake-fd63722dc86ec30e8a6f543881d56b3c473da34d.zip
CMake-fd63722dc86ec30e8a6f543881d56b3c473da34d.tar.gz
CMake-fd63722dc86ec30e8a6f543881d56b3c473da34d.tar.bz2
cmcurl: Fix a build failure with the Cray compiler on Linux (#15026)
The error is caused by a workaround for UNICOS. The workaround incorrectly uses the _CRAYC macro to determine if building for UNICOS. This macro will always be defined for the Cray C and C++ compiler regardless of the target platform, even when building for Linux. The correct macro should be _CRAY, which as per Cray documentation is only defined for UNICOS targeted builds.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/hostip.c b/Utilities/cmcurl/hostip.c
index fd555ef..83f1564 100644
--- a/Utilities/cmcurl/hostip.c
+++ b/Utilities/cmcurl/hostip.c
@@ -609,7 +609,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port)
h = &buf->hostentry;
h->h_addr_list = &buf->h_addr_list[0];
addrentry = &buf->addrentry;
-#ifdef _CRAYC
+#ifdef _CRAY
/* On UNICOS, s_addr is a bit field and for some reason assigning to it
* doesn't work. There must be a better fix than this ugly hack.
*/