diff options
Diffstat (limited to 'sysutils/xperfmon3/files/patch-ac')
-rw-r--r-- | sysutils/xperfmon3/files/patch-ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/xperfmon3/files/patch-ac b/sysutils/xperfmon3/files/patch-ac index 1b74333552d9..c2cc4b6f7632 100644 --- a/sysutils/xperfmon3/files/patch-ac +++ b/sysutils/xperfmon3/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; |