summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-19 18:09:27 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-19 18:09:27 +0000
commitdbc37b475e0429bca6423e76ecef402d6933b0c0 (patch)
tree3d87939abf63e595208bca4f8b0e0312b05177e6 /devel
parentAdd a missing dependency on m4. (diff)
Fix build on -CURRENT.
Submitted by: bento Obtained from: libgtop2
Notes
Notes: svn path=/head/; revision=68356
Diffstat (limited to 'devel')
-rw-r--r--devel/libgtop/files/patch-ah15
1 files changed, 13 insertions, 2 deletions
diff --git a/devel/libgtop/files/patch-ah b/devel/libgtop/files/patch-ah
index c538326abc1d..8b51deb9adda 100644
--- a/devel/libgtop/files/patch-ah
+++ b/devel/libgtop/files/patch-ah
@@ -1,5 +1,5 @@
--- sysdeps/freebsd/procmap.c.orig Mon Nov 26 17:37:59 2001
-+++ sysdeps/freebsd/procmap.c Wed Oct 2 21:28:31 2002
++++ sysdeps/freebsd/procmap.c Sat Oct 19 14:07:46 2002
@@ -33,7 +33,11 @@
#include <sys/proc.h>
#include <sys/resource.h>
@@ -41,7 +41,18 @@
!vnode.v_data) continue;
if (kvm_read (server->machine.kd,
-@@ -251,11 +258,6 @@
+@@ -244,18 +251,17 @@
+ &vnode, sizeof (vnode)) != sizeof (vnode))
+ glibtop_error_io_r (server, "kvm_read (vnode)");
+
++#if __FreeBSD_version >= 500039
++ if ((vnode.v_type != VREG) || strcmp("ufs", vnode.v_tag) ||
++#else
+ if ((vnode.v_type != VREG) || (vnode.v_tag != VT_UFS) ||
++#endif
+ !vnode.v_data) continue;
+
+ if (kvm_read (server->machine.kd,
(unsigned long) vnode.v_data,
&inode, sizeof (inode)) != sizeof (inode))
glibtop_error_io_r (server, "kvm_read (inode)");