mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build with new -CURRENT if_xname change.
Submitted by: brooks
This commit is contained in:
parent
d707be32ab
commit
049bb1b64d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92738
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue