diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-07-08 03:00:39 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-07-08 03:00:39 +0800 |
commit | c3becd3d12d0f44aea33711e63bdb8e66e69b479 (patch) | |
tree | 02ea6e5a5357f3a870a203aab7cffb2a4402d81c /devel | |
parent | 2999343835eaea50ee82506f2ab21e2723d4a0e7 (diff) | |
download | marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar.gz marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar.bz2 marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar.lz marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar.xz marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.tar.zst marcuscom-ports-c3becd3d12d0f44aea33711e63bdb8e66e69b479.zip |
Sync with FreeBSD ports.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11107 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-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 000000000..1b90b2308 --- /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; |