aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2008-08-03 03:08:41 +0800
committermarcus <marcus@FreeBSD.org>2008-08-03 03:08:41 +0800
commit5532577fd2b6bcc712267fba31139673103e73d7 (patch)
tree12d52bae45271a14447767f80340ed474ccd2342 /devel
parent8729500541265cc6a8af55b96ca871c5d7b271d2 (diff)
downloadfreebsd-ports-gnome-5532577fd2b6bcc712267fba31139673103e73d7.tar.gz
freebsd-ports-gnome-5532577fd2b6bcc712267fba31139673103e73d7.tar.zst
freebsd-ports-gnome-5532577fd2b6bcc712267fba31139673103e73d7.zip
Fix the build on recent -CURRENT.
Reported by: pointyhat via erwin
Diffstat (limited to 'devel')
-rw-r--r--devel/libgtop/files/patch-sysdeps_freebsd_procmap.c24
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 1b90b2308a2e..a2bdf79aee8b 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-04-21 14:58:26.000000000 -0400
++++ sysdeps/freebsd/procmap.c 2008-08-02 15:06:46.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) ||