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:
parent
049bb1b64d
commit
76255fa1a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92739
11
devel/libgtop/files/patch-sysdeps::freebsd::netload.c
Normal file
11
devel/libgtop/files/patch-sysdeps::freebsd::netload.c
Normal 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)");
|
Loading…
Reference in New Issue
Block a user