Fixed BSD unused warning
This commit is contained in:
parent
013992d9cd
commit
13760d0447
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue