diff options
author | kwm <kwm@FreeBSD.org> | 2016-09-26 05:34:26 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2016-09-26 05:34:26 +0800 |
commit | 1d8b5f536e36046472bf4a0bcfbe6f2e1a5b0113 (patch) | |
tree | 373c3c64881d8d272ec02e49a870c679a3524507 /devel | |
parent | ca91b3a659fee463e10cfeddc90325be2c016a36 (diff) | |
download | freebsd-ports-gnome-1d8b5f536e36046472bf4a0bcfbe6f2e1a5b0113.tar.gz freebsd-ports-gnome-1d8b5f536e36046472bf4a0bcfbe6f2e1a5b0113.tar.zst freebsd-ports-gnome-1d8b5f536e36046472bf4a0bcfbe6f2e1a5b0113.zip |
Fix the build after 305902 change ufs inode related structs.
https://svnweb.freebsd.org/changeset/base/305902
Submitted by: antoine@
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_procmap.c | 31 |
1 files changed, 31 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..0482a00bb9d8 --- /dev/null +++ b/devel/libgtop/files/patch-sysdeps_freebsd_procmap.c @@ -0,0 +1,31 @@ +--- sysdeps/freebsd/procmap.c.orig 2015-08-17 18:59:37 UTC ++++ sysdeps/freebsd/procmap.c +@@ -52,6 +52,8 @@ + #include <sys/mount.h> + #include <ufs/ufs/quota.h> + #include <ufs/ufs/inode.h> ++#include <ufs/ufs/extattr.h> ++#include <ufs/ufs/ufsmount.h> + #include <fs/devfs/devfs.h> + #if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__) + #include <fs/devfs/devfs_int.h> +@@ -86,6 +88,8 @@ _glibtop_sysdeps_freebsd_dev_inode (glib + struct cdev_priv priv; + #if __FreeBSD_version < 800039 + struct cdev si; ++#else ++ struct ufsmount um; + #endif + + *inum = 0; +@@ -167,7 +171,9 @@ _glibtop_sysdeps_freebsd_dev_inode (glib + + + #if (__FreeBSD_version >= 800039) || (__FreeBSD_kernel_version >= 800039) +- if (kvm_read (server->machine->kd, (gulong) cdev2priv(inode.i_dev), (char *) &priv, ++ if (kvm_read (server->machine->kd, (gulong) inode.i_ump, (char *) &um, ++ sizeof (um)) != sizeof (um) || ++ kvm_read (server->machine->kd, (gulong) cdev2priv(um.um_dev), (char *) &priv, + sizeof (priv)) + #else + if (kvm_read (server->machine->kd, (gulong) inode.i_dev, (char *) &si, |