Commit a234bcaf authored by Ådne Hovda's avatar Ådne Hovda Committed by Brad King
Browse files

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.
parent 0c3ddf8b
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment