diff options
Diffstat (limited to 'devel/libgtop')
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_procmap.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c b/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c index 1b90b2308..97fde7b17 100644 --- a/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c +++ b/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c @@ -1,6 +1,24 @@ ---- sysdeps/freebsd/procmap.c.orig 2008-06-21 01:58:25.000000000 +0200 -+++ sysdeps/freebsd/procmap.c 2008-06-21 01:58:30.000000000 +0200 -@@ -103,8 +103,14 @@ +--- sysdeps/freebsd/procmap.c.orig 2008-05-23 18:13:23.000000000 -0400 ++++ sysdeps/freebsd/procmap.c 2008-08-02 19:03:51.000000000 -0400 +@@ -41,7 +41,17 @@ + #define _KERNEL + #include <sys/pipe.h> + #include <sys/conf.h> ++#undef _KERNEL ++#if __FreeBSD_version >= 800038 ++#define _WANT_FILE + #include <sys/file.h> ++#undef _WANT_FILE ++#else ++#define _KERNEL ++#include <sys/file.h> ++#undef _KERNEL ++#endif ++#define _KERNEL + #include <sys/mount.h> + #include <ufs/ufs/quota.h> + #include <ufs/ufs/inode.h> +@@ -103,8 +113,14 @@ _glibtop_sysdeps_freebsd_dev_inode (glib if (kvm_read (server->machine.kd, (gulong) inode.i_dev, (char *) &si, sizeof (si)) != sizeof (si) || |