diff --git a/SystemInformation.cxx b/SystemInformation.cxx index 3a3916c9cfd1212f479a2512b9418e3d177b6d3d..830183f8c84876d65b858ef9c5d1dee423b2124b 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -2768,6 +2768,7 @@ unsigned int SystemInformationImplementation::GetNumberOfPhysicalCPU() /** For Mac use sysctlbyname calls to find system info */ bool SystemInformationImplementation::ParseSysCtl() { +#if defined(__APPLE__) int err = 0; uint64_t value = 0; size_t len = sizeof(value); @@ -2866,6 +2867,9 @@ bool SystemInformationImplementation::ParseSysCtl() this->Features.L2CacheSize = value; return true; +#else + return false; +#endif } /** Extract a value from sysctl command */