From dd6df94016409c42f359d7e7f23c84c6f17036f9 Mon Sep 17 00:00:00 2001 From: nox Date: Tue, 4 Sep 2007 21:44:23 +0000 Subject: - 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 --- archivers/p7zip/Makefile | 1 + archivers/p7zip/files/patch-CPP-Windows-System.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 archivers/p7zip/files/patch-CPP-Windows-System.cpp (limited to 'archivers') 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; -- cgit