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:
parent
0c3ddf8b65
commit
a234bcafd2
|
@ -3913,7 +3913,7 @@ bool SystemInformationImplementation::QueryCygwinMemory()
|
||||||
|
|
||||||
bool SystemInformationImplementation::QueryAIXMemory()
|
bool SystemInformationImplementation::QueryAIXMemory()
|
||||||
{
|
{
|
||||||
#if defined(_AIX)
|
#if defined(_AIX) && defined(_SC_AIX_REALMEM)
|
||||||
long c = sysconf(_SC_AIX_REALMEM);
|
long c = sysconf(_SC_AIX_REALMEM);
|
||||||
if (c <= 0)
|
if (c <= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue