diff options
author | nox <nox@FreeBSD.org> | 2007-09-05 05:44:23 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2007-09-05 05:44:23 +0800 |
commit | dd6df94016409c42f359d7e7f23c84c6f17036f9 (patch) | |
tree | 57ef6e01749d4fd7f28b1e045a13d32963704964 /archivers | |
parent | f067812ec3d829a64e0079411d8c9ea928c78b26 (diff) | |
download | freebsd-ports-gnome-dd6df94016409c42f359d7e7f23c84c6f17036f9.tar.gz freebsd-ports-gnome-dd6df94016409c42f359d7e7f23c84c6f17036f9.tar.zst freebsd-ports-gnome-dd6df94016409c42f359d7e7f23c84c6f17036f9.zip |
- 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')
-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; |