1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/archivers/p7zip/files/patch-CPP_Windows_System.cpp
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

12 lines
386 B
C++

--- CPP/Windows/System.cpp.orig 2015-11-20 21:33:04 UTC
+++ CPP/Windows/System.cpp
@@ -44,7 +44,7 @@ namespace NWindows
#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;