aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2007-09-04 21:44:23 +0000
committerJuergen Lock <nox@FreeBSD.org>2007-09-04 21:44:23 +0000
commitab109ef747c0ac7fb2b4ef69387046b0aa61640c (patch)
treef3ed7b4e484725b349532c3e6e0b4cf87d31fa85 /archivers
parent9aaa37d38f486dcf4c212b07a267d9307fdba129 (diff)
downloadports-ab109ef747c0ac7fb2b4ef69387046b0aa61640c.tar.gz
ports-ab109ef747c0ac7fb2b4ef69387046b0aa61640c.zip
Notes
Diffstat (limited to 'archivers')
-rw-r--r--archivers/p7zip/Makefile1
-rw-r--r--archivers/p7zip/files/patch-CPP-Windows-System.cpp10
2 files changed, 11 insertions, 0 deletions
diff --git a/archivers/p7zip/Makefile b/archivers/p7zip/Makefile
index 09b15d2f2b77..bde5ed6fb1d9 100644
--- a/archivers/p7zip/Makefile
+++ b/archivers/p7zip/Makefile
@@ -7,6 +7,7 @@
PORTNAME= p7zip
PORTVERSION= 4.53
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${DISTVERSION}_src_all
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 000000000000..3f2bd3453783
--- /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;