diff options
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/p7zip/Makefile | 1 | ||||
-rw-r--r-- | archivers/p7zip/files/patch-CPP-Windows-System.cpp | 10 |
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; |