diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-06 14:52:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-06 14:52:57 +0300 |
commit | b277ba5c0d75f241e17bfbd7492dd2f5e3f146b9 (patch) | |
tree | a1e1e0ab3aee9a41e1783acd49d5142bebc930d1 /intern | |
parent | 47d0d9cca4d0c3ccbdc368e97fc24652379fd368 (diff) |
Cycles: Fix compilation error on OSX
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_system.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index 16f713e1ea6..d5fac9a0e34 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -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 |