summaryrefslogtreecommitdiff
path: root/sysutils/xperfmon/files/patch-ac
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-02-21 08:48:03 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-02-21 08:48:03 +0000
commit62ca955f04ec798e2b9391c80a53b438eb5a511a (patch)
treec8c1d162d15b124a3ae17bc03b46f47aff92a82a /sysutils/xperfmon/files/patch-ac
parentNot everyone has `.' in his $PATH. (diff)
Update ports to new __FreeBSD_version numbering scheme (220000 for
2.2-RELEASE, 300000 for 3.0-current for now).
Diffstat (limited to '')
-rw-r--r--sysutils/xperfmon/files/patch-ac4
1 files changed, 2 insertions, 2 deletions
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;