diff options
author | marcus <marcus@FreeBSD.org> | 2002-10-20 02:09:27 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-10-20 02:09:27 +0800 |
commit | 6a7c8eb509ba715587827ec646a3c40db1046d98 (patch) | |
tree | c97d311355c2def4d6c120dee1f86e3320261454 | |
parent | 92df32cf59b54cc4daf9e00f9c82523391dfe904 (diff) | |
download | freebsd-ports-gnome-6a7c8eb509ba715587827ec646a3c40db1046d98.tar.gz freebsd-ports-gnome-6a7c8eb509ba715587827ec646a3c40db1046d98.tar.zst freebsd-ports-gnome-6a7c8eb509ba715587827ec646a3c40db1046d98.zip |
Fix build on -CURRENT.
Submitted by: bento
Obtained from: libgtop2
-rw-r--r-- | devel/libgtop/files/patch-ah | 15 |
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)"); |