strongswan4: uClibc-0.9.31 fix
[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