pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/kdeutils3 avoid a compile time error on 64 bit pl...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8905d61686bb
branches: trunk
changeset: 465307:8905d61686bb
user: mrg <mrg%pkgsrc.org@localhost>
date: Sat Dec 27 14:35:16 2003 +0000
description:
avoid a compile time error on 64 bit platforms: can't pass int * to a
fucntion (sysctl(3)) expecting size_t *.
diffstat:
misc/kdeutils3/distinfo | 4 ++--
misc/kdeutils3/patches/patch-ap | 14 ++++++++++----
2 files changed, 12 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 908fc00a3a8e -r 8905d61686bb misc/kdeutils3/distinfo
--- a/misc/kdeutils3/distinfo Sat Dec 27 14:11:52 2003 +0000
+++ b/misc/kdeutils3/distinfo Sat Dec 27 14:35:16 2003 +0000
@@ -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-am) = 1f9931d683654159686151206db4c628253e875e
SHA1 (patch-an) = ecc14037fad569dc0627c980537bbfa03e4f820c
SHA1 (patch-ao) = c68f205ab70cd6a5331c052b234c3fe7fb0ad411
-SHA1 (patch-ap) = 7938c4a33fa178740b0d2f704f4aab1b693ee112
+SHA1 (patch-ap) = 0bfa5bfeb6551791ea6311bbf1223732d3dfa482
diff -r 908fc00a3a8e -r 8905d61686bb misc/kdeutils3/patches/patch-ap
--- a/misc/kdeutils3/patches/patch-ap Sat Dec 27 14:11:52 2003 +0000
+++ b/misc/kdeutils3/patches/patch-ap Sat Dec 27 14:35:16 2003 +0000
@@ -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 @@
#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)
Home |
Main Index |
Thread Index |
Old Index