2016-07-26 16:51:15 +00:00
|
|
|
--- CPP/Windows/System.cpp.orig 2015-11-20 21:33:04 UTC
|
2015-12-04 14:16:13 +00:00
|
|
|
+++ CPP/Windows/System.cpp
|
|
|
|
@@ -44,7 +44,7 @@ namespace NWindows
|
2008-09-07 11:16:48 +00:00
|
|
|
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
2007-09-04 21:44:23 +00:00
|
|
|
UInt32 GetNumberOfProcessors() {
|
2008-09-07 11:16:48 +00:00
|
|
|
int nbcpu = 1;
|
2007-09-04 21:44:23 +00:00
|
|
|
- size_t value;
|
2015-12-04 14:16:13 +00:00
|
|
|
+ int value;
|
2007-09-04 21:44:23 +00:00
|
|
|
size_t len = sizeof(value);
|
|
|
|
if (sysctlbyname("hw.ncpu", &value, &len, NULL, 0) == 0)
|
|
|
|
nbcpu = value;
|