summaryrefslogtreecommitdiffstats
path: root/archivers/p7zip/files
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2007-09-04 21:44:23 +0000
committernox <nox@FreeBSD.org>2007-09-04 21:44:23 +0000
commitdd6df94016409c42f359d7e7f23c84c6f17036f9 (patch)
tree57ef6e01749d4fd7f28b1e045a13d32963704964 /archivers/p7zip/files
parentf067812ec3d829a64e0079411d8c9ea928c78b26 (diff)
downloadFreeBSD-ports-dd6df94016409c42f359d7e7f23c84c6f17036f9.zip
FreeBSD-ports-dd6df94016409c42f359d7e7f23c84c6f17036f9.tar.gz
- hw.ncpu seems to be an int, certainly not a size_t...
(This should fix issues on 64 bit big-endian archs, i.e. sparc64.) - bump PORTREVISION Noticed by: naddy
Diffstat (limited to 'archivers/p7zip/files')
-rw-r--r--archivers/p7zip/files/patch-CPP-Windows-System.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/archivers/p7zip/files/patch-CPP-Windows-System.cpp b/archivers/p7zip/files/patch-CPP-Windows-System.cpp
new file mode 100644
index 0000000..3f2bd34
--- /dev/null
+++ b/archivers/p7zip/files/patch-CPP-Windows-System.cpp
@@ -0,0 +1,10 @@
+Index: CPP/Windows/System.cpp
+@@ -35,7 +35,7 @@
+ #elif defined (__FreeBSD__)
+ 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;
OpenPOWER on IntegriCloud