Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-06-06 14:52:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-06-06 14:52:57 +0300
commitb277ba5c0d75f241e17bfbd7492dd2f5e3f146b9 (patch)
treea1e1e0ab3aee9a41e1783acd49d5142bebc930d1
parent47d0d9cca4d0c3ccbdc368e97fc24652379fd368 (diff)
Cycles: Fix compilation error on OSX
-rw-r--r--intern/cycles/util/util_system.cpp3
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