aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-06-22 19:05:55 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-06-22 19:05:55 +0000
commit4ffff0553de76788bcc6b94f768716f86203889b (patch)
tree6b5504311417d363cb58865561fe2873ac1f48a2 /devel
parentfe4c254a786381f2278cad1999ef68c3efbd112f (diff)
downloadports-4ffff0553de76788bcc6b94f768716f86203889b.tar.gz
ports-4ffff0553de76788bcc6b94f768716f86203889b.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/libgtop/files/patch-sysdeps_freebsd_procmap.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c b/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c
new file mode 100644
index 000000000000..1b90b2308a2e
--- /dev/null
+++ b/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c
@@ -0,0 +1,18 @@
+--- 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 @@
+
+ if (kvm_read (server->machine.kd, (gulong) inode.i_dev, (char *) &si,
+ sizeof (si)) != sizeof (si) ||
++#if __FreeBSD_version >= 800039
++ kvm_read (server->machine.kd, (gulong) cdev2priv(&si), (char *) &priv,
++ sizeof (priv))
++#else
+ kvm_read (server->machine.kd, (gulong) si.si_priv, (char *) &priv,
+- sizeof (priv)) != sizeof (priv))
++ sizeof (priv))
++#endif
++ != sizeof (priv))
+ {
+ glibtop_warn_io_r (server, "kvm_read (si)");
+ return;