1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Fix build on -CURRENT with if_xname change.

Submitted by:	brooks
This commit is contained in:
Joe Marcus Clarke 2003-10-31 19:56:18 +00:00
parent 049bb1b64d
commit 76255fa1a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92739

View File

@ -0,0 +1,11 @@
--- sysdeps/freebsd/netload.c.orig Mon Nov 25 12:51:03 2002
+++ sysdeps/freebsd/netload.c Mon Nov 25 12:51:30 2002
@@ -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)");