From: Michael Büsch Date: Thu, 4 Nov 2010 00:50:47 +0000 (+0000) Subject: strongswan4: uClibc-0.9.31 fix X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=c5dd42d01ac4a62cdea0519b4660ac32b3fdc91a;hp=2eed3737ce69ea7f7fbecec0136a13ddecffef33 strongswan4: uClibc-0.9.31 fix SVN-Revision: 23848 --- diff --git a/net/strongswan4/patches/202-clone.patch b/net/strongswan4/patches/202-clone.patch index fdcd0e483d..88dc5d9afb 100644 --- a/net/strongswan4/patches/202-clone.patch +++ b/net/strongswan4/patches/202-clone.patch @@ -1,6 +1,8 @@ ---- a/src/libstrongswan/utils/identification.c -+++ b/src/libstrongswan/utils/identification.c -@@ -798,7 +798,7 @@ int identification_printf_hook(char *dst +Index: strongswan-4.3.7/src/libstrongswan/utils/identification.c +=================================================================== +--- strongswan-4.3.7.orig/src/libstrongswan/utils/identification.c 2010-11-04 01:34:00.492000001 +0100 ++++ strongswan-4.3.7/src/libstrongswan/utils/identification.c 2010-11-04 01:34:06.791999987 +0100 +@@ -810,7 +810,7 @@ return print_in_hook(dst, len, "%*s", spec->width, buf); } @@ -9,7 +11,7 @@ private_identification_t *this) { private_identification_t *clone = malloc_thing(private_identification_t); -@@ -830,7 +830,7 @@ static private_identification_t *identif +@@ -842,7 +842,7 @@ .get_encoding = _get_encoding, .get_type = _get_type, .create_part_enumerator = _create_part_enumerator, diff --git a/net/strongswan4/patches/300-compile-fixes.patch b/net/strongswan4/patches/300-compile-fixes.patch new file mode 100644 index 0000000000..5a33ab237c --- /dev/null +++ b/net/strongswan4/patches/300-compile-fixes.patch @@ -0,0 +1,13 @@ +Index: strongswan-4.3.7/src/pluto/adns.c +=================================================================== +--- strongswan-4.3.7.orig/src/pluto/adns.c 2010-11-04 01:34:39.497000001 +0100 ++++ strongswan-4.3.7/src/pluto/adns.c 2010-11-04 01:35:10.609000001 +0100 +@@ -179,7 +179,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 */ +