freebsd-ports/archivers/p7zip/files/patch-CPP-Windows-System.cpp
Juergen Lock 24d75a9944 Update to 4.58
PR:		ports/127159
Submitted by:	chinsan
2008-09-07 11:16:48 +00:00

11 lines
417 B
C++

--- CPP/Windows/System.cpp.orig 2008-09-07 02:29:34.000000000 +0800
+++ CPP/Windows/System.cpp 2008-09-07 02:30:23.000000000 +0800
@@ -44,7 +44,7 @@
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
UInt32 GetNumberOfProcessors() {
int nbcpu = 1;
- size_t value;
+ int value;
size_t len = sizeof(value);
if (sysctlbyname("hw.ncpu", &value, &len, NULL, 0) == 0)
nbcpu = value;