summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorÅdne Hovda <ahovda@openit.com>2014-11-11 10:13:55 +0100
committerBrad King <brad.king@kitware.com>2014-11-11 09:16:46 -0500
commita234bcafd2487ff348546addd9d07f5c74549528 (patch)
tree25d3868723649015ebe0f65daf98d1ad07c2910a /Source
parent0c3ddf8b652311ec2a9447a9e6303691841628b4 (diff)
downloadcmake-a234bcafd2487ff348546addd9d07f5c74549528.tar.gz
KWSys SystemInformation: Check for _SC_AIX_REALMEM before using it
Add a check for supported flag when querying for system memory on AIX 5.1.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 84b5f39f30..c4aeb473f1 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -3913,7 +3913,7 @@ bool SystemInformationImplementation::QueryCygwinMemory()
bool SystemInformationImplementation::QueryAIXMemory()
{
-#if defined(_AIX)
+#if defined(_AIX) && defined(_SC_AIX_REALMEM)
long c = sysconf(_SC_AIX_REALMEM);
if (c <= 0)
{