diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-01 03:54:15 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-01 03:54:15 +0800 |
commit | 2e49a1805d13d9edb9e886a03c2f927b5900deb7 (patch) | |
tree | 26c6b5921bc27ff9f3f4eac6ae8d7751dd84f4c4 /devel/libgtop2 | |
parent | 11095b125238c931f7b42cd8764dd78f67452d4c (diff) | |
download | freebsd-ports-gnome-2e49a1805d13d9edb9e886a03c2f927b5900deb7.tar.gz freebsd-ports-gnome-2e49a1805d13d9edb9e886a03c2f927b5900deb7.tar.zst freebsd-ports-gnome-2e49a1805d13d9edb9e886a03c2f927b5900deb7.zip |
Fix build with new -CURRENT if_xname change.
Submitted by: brooks
Diffstat (limited to 'devel/libgtop2')
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps_freebsd_netload.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/libgtop2/files/patch-sysdeps_freebsd_netload.c b/devel/libgtop2/files/patch-sysdeps_freebsd_netload.c index 29ab73bd840f..1f013d220014 100644 --- a/devel/libgtop2/files/patch-sysdeps_freebsd_netload.c +++ b/devel/libgtop2/files/patch-sysdeps_freebsd_netload.c @@ -8,6 +8,15 @@ union { struct ifaddr ifa; +@@ -109,7 +109,7 @@ + sizeof (ifnet)) != sizeof (ifnet)) + glibtop_error_io_r (server, "kvm_read (ifnetaddr)"); + +-#if defined(__FreeBSD__) || defined(__bsdi__) ++#if (defined(__FreeBSD__) && (__FreeBSD_version < 501113)) || defined(__bsdi__) + if (kvm_read (server->machine.kd, (u_long) ifnet.if_name, + tname, 16) != 16) + glibtop_error_io_r (server, "kvm_read (if_name)"); @@ -113,6 +114,9 @@ if (kvm_read (server->machine.kd, (u_long) ifnet.if_name, tname, 16) != 16) |