diff options
author | wiz <wiz@pkgsrc.org> | 2001-07-17 11:02:01 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-07-17 11:02:01 +0000 |
commit | ab363a2a5d980de199b82c0032324ddf4a2006c2 (patch) | |
tree | 1cd0fe1a9d52a753e5b5c23b8db5c2c945dc1c29 /devel | |
parent | 83ed03a875e21ce5e38f82c8f492b069dcc92265 (diff) | |
download | pkgsrc-ab363a2a5d980de199b82c0032324ddf4a2006c2.tar.gz |
Fix glibtop_get_cpu as suggested in pkg/13405 by Matthias Grutzeck.
(source comment is misleading in this case)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/distinfo | 4 | ||||
-rw-r--r-- | devel/libgtop/patches/patch-ae | 12 |
2 files changed, 7 insertions, 9 deletions
diff --git a/devel/libgtop/distinfo b/devel/libgtop/distinfo index 230b468dded..916be1a5fa4 100644 --- a/devel/libgtop/distinfo +++ b/devel/libgtop/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2001/07/17 10:48:06 wiz Exp $ +$NetBSD: distinfo,v 1.4 2001/07/17 11:02:01 wiz Exp $ SHA1 (libgtop-1.0.12.tar.gz) = 7ff6ae62b599db4bd51b54d4d549627eacfc8509 Size (libgtop-1.0.12.tar.gz) = 882461 bytes @@ -6,7 +6,7 @@ SHA1 (patch-aa) = ee524ecb7394ad762ab907eaa3a2073efd1974a9 SHA1 (patch-ab) = 3ce99bf4d72cf4e4203364d78361c8a2df081d8d SHA1 (patch-ac) = 644bfe717bdcc993a668a3d075acda8ef39571d8 SHA1 (patch-ad) = 9522d20b1467b73678003d5c0f98dcac7d312893 -SHA1 (patch-ae) = e7fd09cd2d0ce8edd97c9b3df6b4fc9b69de7345 +SHA1 (patch-ae) = cf277165382c17d938593934b59d8035175fd8d0 SHA1 (patch-al) = 1917262d3edf4c9bea7baffcfd84616188f78f51 SHA1 (patch-an) = 339df94fd374d99565be913d1f8b59ea2f7b7881 SHA1 (patch-ao) = 09cb66ba7ee9a7368ec1cd1d4bd40ea3f6637a31 diff --git a/devel/libgtop/patches/patch-ae b/devel/libgtop/patches/patch-ae index a643eb1616f..4056d2d5830 100644 --- a/devel/libgtop/patches/patch-ae +++ b/devel/libgtop/patches/patch-ae @@ -1,7 +1,7 @@ -$NetBSD: patch-ae,v 1.7 2000/06/30 03:13:37 wiz Exp $ +$NetBSD: patch-ae,v 1.8 2001/07/17 11:02:02 wiz Exp $ --- sysdeps/freebsd/cpu.c.orig Sun Feb 13 16:47:58 2000 -+++ sysdeps/freebsd/cpu.c Thu Jun 29 00:01:11 2000 ++++ sysdeps/freebsd/cpu.c @@ -27,11 +27,16 @@ #include <glibtop_suid.h> @@ -19,7 +19,7 @@ $NetBSD: patch-ae,v 1.7 2000/06/30 03:13:37 wiz Exp $ /* nlist structure for kernel access */ static struct nlist nlst [] = { #ifdef __bsdi__ -@@ -41,16 +46,21 @@ +@@ -41,21 +46,27 @@ #endif { 0 } }; @@ -41,14 +41,12 @@ $NetBSD: patch-ae,v 1.7 2000/06/30 03:13:37 wiz Exp $ if (kvm_nlist (server->machine.kd, nlst) < 0) { glibtop_warn_io_r (server, "kvm_nlist (cpu)"); return; -@@ -58,6 +68,7 @@ + } ++#endif /* Set this only if kvm_nlist () succeeded. */ server->sysdeps.cpu = _glibtop_sysdeps_cpu; -+#endif } - - /* Provides information about cpu usage. */ @@ -65,7 +76,11 @@ void glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf) |