diff options
author | nox <nox@FreeBSD.org> | 2007-09-04 21:44:23 +0000 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2007-09-04 21:44:23 +0000 |
commit | dd6df94016409c42f359d7e7f23c84c6f17036f9 (patch) | |
tree | 57ef6e01749d4fd7f28b1e045a13d32963704964 /archivers/p7zip/files | |
parent | f067812ec3d829a64e0079411d8c9ea928c78b26 (diff) | |
download | FreeBSD-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.cpp | 10 |
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; |