summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'net/net-snmp/patches/patch-aj')
-rw-r--r--net/net-snmp/patches/patch-aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/net-snmp/patches/patch-aj b/net/net-snmp/patches/patch-aj
new file mode 100644
index 00000000000..c30cd17ad58
--- /dev/null
+++ b/net/net-snmp/patches/patch-aj
@@ -0,0 +1,17 @@
+$NetBSD: patch-aj,v 1.4.6.1 2008/06/16 08:51:43 ghen Exp $
+
+--- agent/mibgroup/mibII/udp.c.orig 2007-07-16 19:59:44.000000000 -0400
++++ agent/mibgroup/mibII/udp.c 2008-06-04 19:46:27.000000000 -0400
+@@ -159,6 +159,12 @@
+ #define USES_TRADITIONAL_UDPSTAT
+ #endif
+
++#ifdef UDP_NSTATS
++typedef struct udpstat {
++ uint64_t st[UDP_NSTATS];
++};
++#define UDP_STAT_STRUCTURE struct udpstat
++#endif
+
+ #if !defined(UDP_STAT_STRUCTURE)
+ #define UDP_STAT_STRUCTURE struct udpstat