Skip to content
Snippets Groups Projects
Commit cade55b5 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make this build on other machines besides the mac

parent 3eb3ad41
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment