summaryrefslogtreecommitdiff
path: root/net/delegate/patches/patch-src_inets_c
diff options
context:
space:
mode:
Diffstat (limited to 'net/delegate/patches/patch-src_inets_c')
-rw-r--r--net/delegate/patches/patch-src_inets_c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/delegate/patches/patch-src_inets_c b/net/delegate/patches/patch-src_inets_c
new file mode 100644
index 00000000000..edb5e46c189
--- /dev/null
+++ b/net/delegate/patches/patch-src_inets_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_inets_c,v 1.1 2012/06/30 07:05:09 dholland Exp $
+
+Fix build with gcc 4.5.
+
+--- src/inets.c~ 2009-01-13 04:44:08.000000000 +0000
++++ src/inets.c
+@@ -183,7 +183,7 @@ int addrIsWildcard(PCStr(addr)){
+
+ #define RESOLVERS_SIZ 512
+
+-extern struct { defQStr(resolv_errmsg); } resolv_errmsg;
++extern struct resolv_thingy { defQStr(resolv_errmsg); } resolv_errmsg;
+
+ int CTX_defSockOpts(DGC*,PCStr(name),PCStr(spec),int neg);
+ static scanListFunc conf1(PCStr(conf))