pkgsrc/net/net-snmp/patches/patch-ak
christos 8f06e2a229 PR/36978: Hasso Tepper: Make net-snmp work on dragonfly.
While I am here make it run again on NetBSD (hi clown boy)
2008-06-05 19:09:41 +00:00

18 lines
508 B
Text

$NetBSD: patch-ak,v 1.4 2008/06/05 19:09:41 christos Exp $
--- agent/mibgroup/mibII/icmp.c.orig 2007-07-16 19:59:44.000000000 -0400
+++ agent/mibgroup/mibII/icmp.c 2008-06-04 19:42:01.000000000 -0400
@@ -140,6 +140,13 @@
#define USES_TRADITIONAL_ICMPSTAT
#endif
+#ifdef ICMP_NSTATS
+struct icmpstat {
+ uint64_t st[ICMP_NSTATS];
+};
+#define ICMP_STAT_STRUCTURE struct icmpstat
+#endif
+
#if !defined(ICMP_STAT_STRUCTURE)
#define ICMP_STAT_STRUCTURE struct icmpstat
#define USES_TRADITIONAL_ICMPSTAT