Fixed BSD unused warning

This commit is contained in:
Snaipe 2015-09-23 22:34:27 +02:00
parent 013992d9cd
commit 13760d0447

View file

@ -32,8 +32,8 @@ size_t get_processor_count(void) {
return (size_t) sysinfo.dwNumberOfProcessors;
#elif defined(BSD)
int mib[2] = { CTL_HW, HW_NCPU };
size_t miblen = 2;
# ifdef __APPLE__
size_t miblen = 2;
sysctlnametomib("hw.logicalcpu", mib, &miblen);
# endif