summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2013-03-12 17:14:48 +0000
committerkim <kim@pkgsrc.org>2013-03-12 17:14:48 +0000
commit7f94ea65f588938b2f1c3f30e99e3d875e36f5da (patch)
treea5c2ec370562d442b827344b75b7eeecd38cfc5a /net/net-snmp/patches
parent504f4c9771e472e68ac015951b5cf762baea6eba (diff)
downloadpkgsrc-7f94ea65f588938b2f1c3f30e99e3d875e36f5da.tar.gz
Make this compile on historical NetBSD.
Diffstat (limited to 'net/net-snmp/patches')
-rw-r--r--net/net-snmp/patches/patch-agent_mibgroup_mibII_ipAddr.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/net-snmp/patches/patch-agent_mibgroup_mibII_ipAddr.c b/net/net-snmp/patches/patch-agent_mibgroup_mibII_ipAddr.c
new file mode 100644
index 00000000000..06ecc91d211
--- /dev/null
+++ b/net/net-snmp/patches/patch-agent_mibgroup_mibII_ipAddr.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-agent_mibgroup_mibII_ipAddr.c,v 1.1 2013/03/12 17:14:49 kim Exp $
+
+--- agent/mibgroup/mibII/ipAddr.c.orig 2010-01-23 17:07:35.000000000 +0200
++++ agent/mibgroup/mibII/ipAddr.c 2013-03-12 17:48:01.000000000 +0200
+@@ -218,6 +218,10 @@
+ if (Interface_Scan_Next(&interface, NULL, &ifnet, &in_ifaddr) == 0)
+ break;
+ #ifdef HAVE_STRUCT_IFNET_IF_ADDRLIST
++#if defined(netbsd1) || defined(openbsd2)
++#define if_addrlist if_addrlist.tqh_first
++#endif
++
+ if (ifnet.if_addrlist == 0)
+ continue; /* No address found for interface */
+ #endif