diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-06-22 19:05:55 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-06-22 19:05:55 +0000 |
commit | 4ffff0553de76788bcc6b94f768716f86203889b (patch) | |
tree | 6b5504311417d363cb58865561fe2873ac1f48a2 /devel/libgtop | |
parent | fe4c254a786381f2278cad1999ef68c3efbd112f (diff) | |
download | ports-4ffff0553de76788bcc6b94f768716f86203889b.tar.gz ports-4ffff0553de76788bcc6b94f768716f86203889b.zip |
- Unbreak on CURRENT after change in cdev structure
PR: ports/124807
Submitted by: gahr
Notes
Notes:
svn path=/head/; revision=215542
Diffstat (limited to 'devel/libgtop')
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_procmap.c | 18 |
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; |