diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-11-19 02:36:52 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-11-19 02:36:52 +0000 |
commit | 45a26872f049fcab3c55cc0bcf72e62890851fe9 (patch) | |
tree | 274b04f83d1badec5cd568283e260ee92c8dfd23 /devel/libgtop2/files/patch-ah | |
parent | Fix homepage in pkg-descr (diff) |
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>
Notes
Notes:
svn path=/head/; revision=121946
Diffstat (limited to '')
-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)"); |