ENH: make this build on other machines besides the mac
This commit is contained in:
parent
ee3d395fde
commit
4220e7c62c
|
@ -2768,6 +2768,7 @@ unsigned int SystemInformationImplementation::GetNumberOfPhysicalCPU()
|
||||||
/** For Mac use sysctlbyname calls to find system info */
|
/** For Mac use sysctlbyname calls to find system info */
|
||||||
bool SystemInformationImplementation::ParseSysCtl()
|
bool SystemInformationImplementation::ParseSysCtl()
|
||||||
{
|
{
|
||||||
|
#if defined(__APPLE__)
|
||||||
int err = 0;
|
int err = 0;
|
||||||
uint64_t value = 0;
|
uint64_t value = 0;
|
||||||
size_t len = sizeof(value);
|
size_t len = sizeof(value);
|
||||||
|
@ -2866,6 +2867,9 @@ bool SystemInformationImplementation::ParseSysCtl()
|
||||||
this->Features.L2CacheSize = value;
|
this->Features.L2CacheSize = value;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Extract a value from sysctl command */
|
/** Extract a value from sysctl command */
|
||||||
|
|
Loading…
Reference in New Issue