diff options
author | Ting Liu <ting.liu@freescale.com> | 2015-12-23 00:07:48 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@nxp.com> | 2015-12-23 14:22:53 +0800 |
commit | b46c906b0eff13a2ef610b6389a88382862e2e5d (patch) | |
tree | 7809e4811f0581e9dea172b81b644b6382ea3784 /classes | |
parent | 50fc7a56eedf62059881dbb3a8d80364e9e56617 (diff) | |
download | meta-fsl-ppc-b46c906b0eff13a2ef610b6389a88382862e2e5d.tar.gz |
usdpaa-apps: use in6_* macros from glibc instead of kernel
Both glibc and the kernel have in6_* macros definition. Use the one from glibc.
Kernel headers will check for previous libc definitions by including
include/linux/libc-compat.h.
Fix the below build error:
| [CC] xfrm_km.c (bin:srio_ipsec_offload)
| In file included from .../tmp/sysroots/b4860qds-64b/usr/include/linux/xfrm.h:4:0,
| from src/srio_ipsec_offload/xfrm_km.c:46:
| .../usr/include/netinet/in.h:99:5: error: expected identifier before numeric constant
| IPPROTO_HOPOPTS = 0, /* IPv6 Hop-by-Hop options. */
| ^
| In file included from .../tmp/sysroots/b4860qds-64b/usr/include/netinet/ip.h:24:0,
| from src/srio_ipsec_offload/xfrm_km.c:52:
| .../tmp/sysroots/b4860qds-64b/usr/include/netinet/in.h:209:8: error: redefinition of 'struct in6_addr'
| struct in6_addr
| ^
| In file included from .../tmp/sysroots/b4860qds-64b/usr/include/linux/xfrm.h:4:0,
| from src/srio_ipsec_offload/xfrm_km.c:46:
| .../tmp/sysroots/b4860qds-64b/usr/include/linux/in6.h:32:8: note: originally defined here
| struct in6_addr {
| ^
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
0 files changed, 0 insertions, 0 deletions