5279fd70794f9a95c4b7f1c812468b549bf7ddf7
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / xl2tp / 0001-legacy.patch
1 Replace SUSV3-specific functions index, bcopy, bzero and bcmp by their
2 POSIX variants.
3
4 --- l2tpd-0.70-pre20031121.oorig/osport.h       2004-07-08 22:47:52.000000000 +0200
5 +++ l2tpd-0.70-pre20031121/osport.h     2006-12-28 15:32:50.000000000 +0100
6 @@ -37,4 +37,11 @@
7  
8  #endif /* defined(SOLARIS) */
9  
10 +#if defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS
11 +# define index(x, y)        strchr(x, y)
12 +# define bcopy(S1, S2, LEN) ((void)memmove(S2, S1, LEN))
13 +# define bzero(S1, LEN)     ((void)memset(S1,  0, LEN))
14 +# define bcmp(S1,S2,LEN)    ((memcmp(S2, S1, LEN)==0)?0:1)
15 +#endif /* defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS */
16 +
17  #endif /* _OSPORT_H_ */