ENH: make this build on other machines besides the mac

This commit is contained in:
Bill Hoffman 2009-05-19 16:46:24 -04:00
parent ee3d395fde
commit 4220e7c62c
1 changed files with 4 additions and 0 deletions

View File

@ -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 */