use __UCLIBC_HAS_BACKTRACE__ to decide on backtrace() availability
[buildroot.git] / package / ipsec-tools / ipsec-tools-0.6.7.101-string_legacy.patch
blob976081a4d272e348f720a5415a104037cd939a30
1 diff -rup ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c ipsec-tools-0.6.6/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c
2 --- ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c 2004-01-12 23:31:45.000000000 +0100
3 +++ ipsec-tools-0.6.6/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c 2006-10-11 16:29:42.000000000 +0200
4 @@ -30,8 +30,12 @@
5 #include <crypto/rijndael/rijndael_local.h>
7 #include <err.h>
8 +#ifndef bcopy
9 #define bcopy(a, b, c) memcpy(b, a, c)
10 +#endif
11 +#ifndef bzero
12 #define bzero(a, b) memset(a, 0, b)
13 +#endif
14 #define panic(a) err(1, (a))
16 int rijndael_makeKey(keyInstance *key, BYTE direction, int keyLen, char *keyMaterial) {
17 diff -rup ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/sha2/sha2.c ipsec-tools-0.6.6/src/racoon/missing/crypto/sha2/sha2.c
18 --- ipsec-tools-0.6.6.oorig/src/racoon/missing/crypto/sha2/sha2.c 2004-09-21 16:35:25.000000000 +0200
19 +++ ipsec-tools-0.6.6/src/racoon/missing/crypto/sha2/sha2.c 2006-10-11 16:29:08.000000000 +0200
20 @@ -50,8 +50,12 @@
22 #include <err.h>
23 #include <string.h>
24 +#ifndef bcopy
25 #define bcopy(a, b, c) memcpy((b), (a), (c))
26 +#endif
27 +#ifndef bzero
28 #define bzero(a, b) memset((a), 0, (b))
29 +#endif
30 #define panic(a) err(1, (a))
32 #if OPENSSL_VERSION_NUMBER >= 0x00907000L