diff options
author | Ådne Hovda <ahovda@openit.com> | 2014-11-11 10:13:55 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-11 09:16:46 -0500 |
commit | a234bcafd2487ff348546addd9d07f5c74549528 (patch) | |
tree | 25d3868723649015ebe0f65daf98d1ad07c2910a /Source | |
parent | 0c3ddf8b652311ec2a9447a9e6303691841628b4 (diff) | |
download | cmake-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.cxx | 2 |
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) { |