aboutsummaryrefslogtreecommitdiff
path: root/devel/libgtop/files/patch-sysdeps_freebsd_procwd.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2009-12-14 00:04:17 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2009-12-14 00:04:17 +0000
commitb4e4df1bb78c7d67ecb67ad046121e473be34674 (patch)
tree2e265bdf45536d961add742ff38d0977da5d882f /devel/libgtop/files/patch-sysdeps_freebsd_procwd.c
parent206126ca1c5098d58c04f93da45e979f8173e061 (diff)
downloadports-b4e4df1bb78c7d67ecb67ad046121e473be34674.tar.gz
ports-b4e4df1bb78c7d67ecb67ad046121e473be34674.zip
Notes
Diffstat (limited to 'devel/libgtop/files/patch-sysdeps_freebsd_procwd.c')
-rw-r--r--devel/libgtop/files/patch-sysdeps_freebsd_procwd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_procwd.c b/devel/libgtop/files/patch-sysdeps_freebsd_procwd.c
index 731fec120d39..8fd7ffffffc9 100644
--- a/devel/libgtop/files/patch-sysdeps_freebsd_procwd.c
+++ b/devel/libgtop/files/patch-sysdeps_freebsd_procwd.c
@@ -1,5 +1,5 @@
---- sysdeps/freebsd/procwd.c.orig 2008-08-18 11:23:36.000000000 -0400
-+++ sysdeps/freebsd/procwd.c 2008-12-07 00:19:44.000000000 -0500
+--- sysdeps/freebsd/procwd.c.orig 2009-12-13 18:53:02.827740000 -0500
++++ sysdeps/freebsd/procwd.c 2009-12-13 18:59:27.000000000 -0500
@@ -27,6 +27,9 @@
#include <sys/sysctl.h>
#include <sys/param.h>
@@ -10,6 +10,15 @@
#include <string.h>
static const unsigned long _glibtop_sysdeps_proc_wd =
+@@ -40,7 +43,7 @@ _glibtop_init_proc_wd_s(glibtop *server)
+ server->sysdeps.proc_wd = _glibtop_sysdeps_proc_wd;
+ }
+
+-#if (__FreeBSD_version >= 800000 && __FreeBSD_version < 800019) || _FreeBSD_version < 700104
++#if (__FreeBSD_version >= 800000 && __FreeBSD_version < 800019) || __FreeBSD_version < 700104
+ static GPtrArray *
+ parse_output(const char *output, glibtop_proc_wd *buf)
+ {
@@ -101,10 +104,14 @@ glibtop_get_proc_wd_s(glibtop *server, g
#if __FreeBSD_version > 800018 || (__FreeBSD_version < 800000 && __FreeBSD_version >= 700104)
struct kinfo_file *freep, *kif;