From cade55b5d1d85b50c607b5173db9b66774c6fe5a Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Tue, 19 May 2009 16:46:24 -0400
Subject: [PATCH] ENH: make this build on other machines besides the mac

---
 SystemInformation.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 3a3916c..830183f 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 */
-- 
GitLab