From 8c54ba40213ed736c06ca7944a36333c4ba3ca4f Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 28 Oct 2004 19:44:22 +0000 Subject: Fix build on 6.0-CURRENT with the new vnode changes. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3023 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/libgtop2/files/patch-ah | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/devel/libgtop2/files/patch-ah b/devel/libgtop2/files/patch-ah index bbffe4a0c..3728441be 100644 --- a/devel/libgtop2/files/patch-ah +++ b/devel/libgtop2/files/patch-ah @@ -1,6 +1,20 @@ ---- sysdeps/freebsd/procmap.c.orig Wed Mar 10 21:23:52 2004 -+++ sysdeps/freebsd/procmap.c Thu Mar 11 21:45:33 2004 -@@ -104,7 +104,7 @@ +--- sysdeps/freebsd/procmap.c.orig Fri Sep 24 18:49:06 2004 ++++ sysdeps/freebsd/procmap.c Thu Oct 28 15:42:58 2004 +@@ -47,7 +47,13 @@ + #endif + #endif + ++#ifdef __FreeBSD__ ++#define _KVM_VNODE ++#endif + #include ++#ifdef __FreeBSD__ ++#undef _KVM_VNODE ++#endif + #include + #include + #include +@@ -104,7 +110,7 @@ glibtop_map_entry *maps; #if defined __FreeBSD__ struct vnode vnode; @@ -9,7 +23,7 @@ struct inode inode; #endif #endif -@@ -122,8 +122,10 @@ +@@ -122,8 +128,10 @@ /* Get the process data */ pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count); @@ -21,7 +35,7 @@ /* Now we get the memory maps. */ -@@ -280,13 +282,9 @@ +@@ -278,13 +286,9 @@ &inode, sizeof (inode)) != sizeof (inode)) glibtop_error_io_r (server, "kvm_read (inode)"); -- cgit v1.2.3