summaryrefslogtreecommitdiff
path: root/package/strongswan/patches/patch-src_pluto_adns_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:45:29 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:45:29 +0100
commit220a96f9926788ed531717f78e44fdf1e7ab3b34 (patch)
tree406f65eea71fabd8cf66c2bd1108ec63f8c349ee /package/strongswan/patches/patch-src_pluto_adns_c
parent38af8185ea05a1c5d1abb32a68a025e3b4afa4d6 (diff)
rework architecture / embedded systems concept
Make configuration of new targets cheap. Just add a new file in target/arch/sys-enabled/foo. See other files for syntax. While doing runtime tests with the new infrastructure I've updated a lot of other stuff: - gcc 4.5.2 - uClibc 0.9.32-rc1 (NPTL) - strongswan, php, miredo, parted, util-linux-ng, e2fsprogs I promise, this is the last big fat commit this year ;)
Diffstat (limited to 'package/strongswan/patches/patch-src_pluto_adns_c')
-rw-r--r--package/strongswan/patches/patch-src_pluto_adns_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/strongswan/patches/patch-src_pluto_adns_c b/package/strongswan/patches/patch-src_pluto_adns_c
new file mode 100644
index 000000000..49043fb1b
--- /dev/null
+++ b/package/strongswan/patches/patch-src_pluto_adns_c
@@ -0,0 +1,20 @@
+--- strongswan-4.5.0.orig/src/pluto/adns.c 2010-01-24 02:49:37.000000000 +0100
++++ strongswan-4.5.0/src/pluto/adns.c 2010-12-30 20:25:54.000000000 +0100
+@@ -179,7 +179,8 @@ write_pipe(int fd, const unsigned char *
+ res_query(dname, class, type, answer, anslen)
+ # define res_nclose(statp) res_close()
+
+-static struct __res_state *statp = &_res;
++static struct __res_state *statp;
++//static struct __res_state *statp = &_res;
+
+ #else /* !OLD_RESOLVER */
+
+@@ -590,6 +591,7 @@ int
+ main(int argc UNUSED, char **argv)
+ {
+ int i = 1;
++ statp = &_res;
+
+ name = argv[0];
+