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.
This commit is contained in:
Ådne Hovda 2014-11-11 10:13:55 +01:00 committed by Brad King
parent 0c3ddf8b65
commit a234bcafd2
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{