diff options
author | mrg <mrg@pkgsrc.org> | 2003-12-27 14:35:16 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2003-12-27 14:35:16 +0000 |
commit | 5160d937aca9b3add76f6546b2f7f4ad7ef77d5f (patch) | |
tree | a4afdc1fd1deb58a597a0e169b8bf79f613971b6 /misc/kdeutils3 | |
parent | 328ef9d6e7264fe7c15fcfb5dd3b9accb01bf8f0 (diff) | |
download | pkgsrc-5160d937aca9b3add76f6546b2f7f4ad7ef77d5f.tar.gz |
avoid a compile time error on 64 bit platforms: can't pass int * to a
fucntion (sysctl(3)) expecting size_t *.
Diffstat (limited to 'misc/kdeutils3')
-rw-r--r-- | misc/kdeutils3/distinfo | 4 | ||||
-rw-r--r-- | misc/kdeutils3/patches/patch-ap | 14 |
2 files changed, 12 insertions, 6 deletions
diff --git a/misc/kdeutils3/distinfo b/misc/kdeutils3/distinfo index 28d7271c326..e53a9e0685e 100644 --- a/misc/kdeutils3/distinfo +++ b/misc/kdeutils3/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2003/09/17 23:41:36 markd Exp $ +$NetBSD: distinfo,v 1.17 2003/12/27 14:35:16 mrg Exp $ SHA1 (kdeutils-3.1.4.tar.bz2) = 0658f1a744490fb456928b2ae41fd9be678cf509 Size (kdeutils-3.1.4.tar.bz2) = 1382821 bytes @@ -14,4 +14,4 @@ SHA1 (patch-ak) = a910a9440175c9772c3932fe59fead5b532b1df3 SHA1 (patch-am) = 1f9931d683654159686151206db4c628253e875e SHA1 (patch-an) = ecc14037fad569dc0627c980537bbfa03e4f820c SHA1 (patch-ao) = c68f205ab70cd6a5331c052b234c3fe7fb0ad411 -SHA1 (patch-ap) = 7938c4a33fa178740b0d2f704f4aab1b693ee112 +SHA1 (patch-ap) = 0bfa5bfeb6551791ea6311bbf1223732d3dfa482 diff --git a/misc/kdeutils3/patches/patch-ap b/misc/kdeutils3/patches/patch-ap index ba682f4dfb6..289f7011d3a 100644 --- a/misc/kdeutils3/patches/patch-ap +++ b/misc/kdeutils3/patches/patch-ap @@ -1,8 +1,8 @@ -$NetBSD: patch-ap,v 1.1 2003/03/11 13:22:32 markd Exp $ +$NetBSD: patch-ap,v 1.2 2003/12/27 14:35:16 mrg Exp $ ---- ksim/monitors/cpu/ksimcpu.cpp.orig Tue May 14 02:47:51 2002 -+++ ksim/monitors/cpu/ksimcpu.cpp -@@ -269,6 +269,9 @@ void CpuView::updateCpu(CpuData &cpu, in +--- ksim/monitors/cpu/ksimcpu.cpp.orig 2003-09-02 11:49:19.000000000 +0000 ++++ ksim/monitors/cpu/ksimcpu.cpp 2003-12-27 14:28:38.000000000 +0000 +@@ -277,11 +277,14 @@ cpu.idle = cpuTime[CP_IDLE]; #endif @@ -12,3 +12,9 @@ $NetBSD: patch-ap,v 1.1 2003/03/11 13:22:32 markd Exp $ #if defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) #warning "add support for SMP on OpenBSD and NetBSD" int name2oid[2] = { CTL_KERN, KERN_CPTIME }; + long cpuTime[CPUSTATES]; +- unsigned int cpuTimeLen = sizeof(cpuTime); ++ size_t cpuTimeLen = sizeof(cpuTime); + + if (sysctl(name2oid, 2, &cpuTime, &cpuTimeLen, + 0, 0) < 0) |