mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user