diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2012-09-23 02:51:00 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-09-23 20:52:56 +0200 |
commit | 31b45a8c72b365c09100a7cb99c82c8e63d1b479 (patch) | |
tree | 78da73241a6a9a9d61da74a1b2bf4f9e925af355 /package/xl2tp/xl2tp-legacy.patch | |
parent | 52679e66a52461bc48188dc4c30490aba2a87595 (diff) | |
download | buildroot-novena-31b45a8c72b365c09100a7cb99c82c8e63d1b479.tar.gz buildroot-novena-31b45a8c72b365c09100a7cb99c82c8e63d1b479.zip |
xl2tp: bump to version 1.3.1
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/xl2tp/xl2tp-legacy.patch')
-rw-r--r-- | package/xl2tp/xl2tp-legacy.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/xl2tp/xl2tp-legacy.patch b/package/xl2tp/xl2tp-legacy.patch new file mode 100644 index 000000000..5279fd707 --- /dev/null +++ b/package/xl2tp/xl2tp-legacy.patch @@ -0,0 +1,17 @@ +Replace SUSV3-specific functions index, bcopy, bzero and bcmp by their +POSIX variants. + +--- l2tpd-0.70-pre20031121.oorig/osport.h 2004-07-08 22:47:52.000000000 +0200 ++++ l2tpd-0.70-pre20031121/osport.h 2006-12-28 15:32:50.000000000 +0100 +@@ -37,4 +37,11 @@ + + #endif /* defined(SOLARIS) */ + ++#if defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS ++# define index(x, y) strchr(x, y) ++# define bcopy(S1, S2, LEN) ((void)memmove(S2, S1, LEN)) ++# define bzero(S1, LEN) ((void)memset(S1, 0, LEN)) ++# define bcmp(S1,S2,LEN) ((memcmp(S2, S1, LEN)==0)?0:1) ++#endif /* defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS */ ++ + #endif /* _OSPORT_H_ */ |