From 4220e7c62c52631cf44e3669263e3c9bd7fc2f21 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 19 May 2009 16:46:24 -0400 Subject: [PATCH] ENH: make this build on other machines besides the mac --- Source/kwsys/SystemInformation.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 06e9183e3..a32148aed 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/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 */