5a33ab237cdece2750658023dd44aa899d7f7f6f
[openwrt/svn-archive/archive.git] / net / strongswan4 / patches / 300-compile-fixes.patch
1 Index: strongswan-4.3.7/src/pluto/adns.c
2 ===================================================================
3 --- strongswan-4.3.7.orig/src/pluto/adns.c 2010-11-04 01:34:39.497000001 +0100
4 +++ strongswan-4.3.7/src/pluto/adns.c 2010-11-04 01:35:10.609000001 +0100
5 @@ -179,7 +179,7 @@
6 res_query(dname, class, type, answer, anslen)
7 # define res_nclose(statp) res_close()
8
9 -static struct __res_state *statp = &_res;
10 +#define statp ((struct __res_state *)(&_res))
11
12 #else /* !OLD_RESOLVER */
13