From 99f852de6f38d0b53ecebc62329cd90174e669fa Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 2 Nov 2010 23:59:42 +0000 Subject: [PATCH] openswan: Fix uClibc-0.9.31 build failure git-svn-id: svn://svn.openwrt.org/openwrt/packages@23808 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/openswan/patches/250-resolv-compile-fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 net/openswan/patches/250-resolv-compile-fix.patch diff --git a/net/openswan/patches/250-resolv-compile-fix.patch b/net/openswan/patches/250-resolv-compile-fix.patch new file mode 100644 index 000000000..a2ebb552b --- /dev/null +++ b/net/openswan/patches/250-resolv-compile-fix.patch @@ -0,0 +1,13 @@ +Index: openswan-2.6.29/programs/pluto/adns.c +=================================================================== +--- openswan-2.6.29.orig/programs/pluto/adns.c 2010-11-03 00:50:53.088000003 +0100 ++++ openswan-2.6.29/programs/pluto/adns.c 2010-11-03 00:54:26.985000001 +0100 +@@ -187,7 +187,7 @@ + res_query(dname, class, type, answer, anslen) + # define res_nclose(statp) res_close() + +-static struct __res_state *statp = &_res; ++#define statp ((struct __res_state *)(&_res)) + + #else /* !OLD_RESOLVER */ +