Cycles: Fix compilation error on OSX

This commit is contained in:
Sergey Sharybin 2016-06-06 13:52:57 +02:00
parent 47d0d9cca4
commit b277ba5c0d

@ -54,10 +54,9 @@ int system_cpu_group_thread_count(int group)
return GetActiveProcessorCount(group);
#elif defined(__APPLE__)
(void)group;
int count;
size_t len = sizeof(count);
int mib[2] = { CTL_HW, HW_NCPU };
int count;
sysctl(mib, 2, &count, &len, NULL, 0);
return count;
#else