summaryrefslogtreecommitdiff
path: root/net/delegate/patches/patch-resolvy_resolv_c
blob: 22a9dd33c1c38cdf4c26aa526c4b69ce14239257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-resolvy_resolv_c,v 1.1 2012/06/30 07:05:09 dholland Exp $

Fix build with gcc 4.5.

--- resolvy/resolv.c~	2008-08-26 20:20:40.000000000 +0000
+++ resolvy/resolv.c
@@ -781,7 +781,7 @@ static int getns(int nid,int nsc,VSAddr 
 	return nsx;
 }
 
-extern struct { defQStr(resolv_errmsg); } resolv_errmsg;
+extern struct resolv_thingy { defQStr(resolv_errmsg); } resolv_errmsg;
 static int dumpResponse(int qidbase,PVStr(resp),int rc,Header *hp,PCStr(addr))
 {	const char *mp;
 	CStr(qname,1024);