[packages] gettext: partly revert r24291, it totally broke the package build
[openwrt/svn-archive/archive.git] / net / openswan / patches / 250-resolv-compile-fix.patch
1 Index: openswan-2.6.29/programs/pluto/adns.c
2 ===================================================================
3 --- openswan-2.6.29.orig/programs/pluto/adns.c 2010-11-03 00:50:53.088000003 +0100
4 +++ openswan-2.6.29/programs/pluto/adns.c 2010-11-03 00:54:26.985000001 +0100
5 @@ -187,7 +187,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