diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1997-02-21 08:48:03 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1997-02-21 08:48:03 +0000 |
commit | 62ca955f04ec798e2b9391c80a53b438eb5a511a (patch) | |
tree | c8c1d162d15b124a3ae17bc03b46f47aff92a82a /sysutils/xperfmon/files/patch-ac | |
parent | Not 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-ac | 4 |
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; |