diff options
author | bland <bland@FreeBSD.org> | 2004-11-19 10:36:52 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2004-11-19 10:36:52 +0800 |
commit | aac8f2ac4bd5a6df7feff88d5dba79a8835b10bd (patch) | |
tree | 043247ecb161ec021c45b8943f8774474050b295 /devel/libgtop2/files | |
parent | c267e095dd902b0399c38370380e282f8df5719f (diff) | |
download | freebsd-ports-gnome-aac8f2ac4bd5a6df7feff88d5dba79a8835b10bd.tar.gz freebsd-ports-gnome-aac8f2ac4bd5a6df7feff88d5dba79a8835b10bd.tar.zst freebsd-ports-gnome-aac8f2ac4bd5a6df7feff88d5dba79a8835b10bd.zip |
Fix build on -CURRENT after recent vnode changes.
This fixes build but makes libgtop a bit more useless. Procmap
code need to be revised.
Submitted by: Conrad J. Sabatier <conrads@cox.net>
Diffstat (limited to 'devel/libgtop2/files')
-rw-r--r-- | devel/libgtop2/files/patch-ah | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/devel/libgtop2/files/patch-ah b/devel/libgtop2/files/patch-ah index 3728441bebb7..e0d7484420ec 100644 --- a/devel/libgtop2/files/patch-ah +++ b/devel/libgtop2/files/patch-ah @@ -1,5 +1,5 @@ ---- sysdeps/freebsd/procmap.c.orig Fri Sep 24 18:49:06 2004 -+++ sysdeps/freebsd/procmap.c Thu Oct 28 15:42:58 2004 +--- sysdeps/freebsd/procmap.c.orig Sat Sep 25 07:49:06 2004 ++++ sysdeps/freebsd/procmap.c Fri Nov 19 11:26:15 2004 @@ -47,7 +47,13 @@ #endif #endif @@ -35,7 +35,18 @@ /* Now we get the memory maps. */ -@@ -278,13 +286,9 @@ +@@ -264,8 +272,10 @@ + #if defined(__FreeBSD__) && (__FreeBSD_version >= 500039) + switch (vnode.v_type) { + case VREG: ++#if __FreeBSD_version < 600006 + maps [i-1].inode = vnode.v_cachedid; + maps [i-1].device = vnode.v_cachedfs; ++#endif + default: + continue; + } +@@ -278,13 +288,9 @@ &inode, sizeof (inode)) != sizeof (inode)) glibtop_error_io_r (server, "kvm_read (inode)"); |