From 62ca955f04ec798e2b9391c80a53b438eb5a511a Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Fri, 21 Feb 1997 08:48:03 +0000 Subject: Update ports to new __FreeBSD_version numbering scheme (220000 for 2.2-RELEASE, 300000 for 3.0-current for now). --- sysutils/xperfmon/files/patch-ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysutils/xperfmon/files/patch-ac') diff --git a/sysutils/xperfmon/files/patch-ac b/sysutils/xperfmon/files/patch-ac index 1b74333552d9..c2cc4b6f7632 100644 --- a/sysutils/xperfmon/files/patch-ac +++ b/sysutils/xperfmon/files/patch-ac @@ -14,7 +14,7 @@ - if (nl[N_IFNET].n_value != 0) { + if ((ifnetaddr = nl[N_IFNET].n_value) != 0) { -+#if __FreeBSD_version <= 199701 ++#if __FreeBSD_version < 300000 struct ifnet ifnet; kread(N_IFNET, &ifnetaddr, sizeof(ifnetaddr)); old_packets = packets; @@ -22,7 +22,7 @@ packets.collisions += ifnet.if_collisions; ifnetaddr = (u_long) ifnet.if_next; } -+#else /* 3.0-current, Jan 1997 */ ++#else /* 3.0-* */ + /* Stolen from netstat/if.c */ + struct ifnet ifnet; + struct ifnethead ifnethead; -- cgit v1.2.3