diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-12-01 15:29:30 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-12-01 15:42:06 +0100 |
commit | fad9ed431b545a8b314e952f50e7fefc49477553 (patch) | |
tree | 7d954c0c0d3e5a06f2d9372080cd36b0590ad8c7 /libgtp.pc.in | |
parent | b9ace14717a220edb380d21d849e95ae0c30784e (diff) |
Split implementation of tun_setaddr6 into a separate modulepespin/split-ipv6
Some systems containing specific versions of libc and linux kernel can
produce compilation errors due to conflicting definition of structures
in different include files. This can be the case when including <netinet/in.h>
and <linux/in6.h>. See for more information:
https://sourceware.org/glibc/wiki/Synchronizing_Headers
I hit this compilation error on the system I'm compiling osmo-ggsn with:
arm-poky-linux-gnueabi-gcc ... -c in46_addr.c
In file included from /usr/include/linux/ipv6.h:5:0,
from tun.c:75:
/usr/include/linux/in6.h:30:8: error: redefinition of 'struct in6_addr'
struct in6_addr {
^
In file included from tun.c:24:0:
/usr/include/netinet/in.h:196:8: note: originally defined here
struct in6_addr
^
To fix the issue, this patch moves tun_setaddr6 to its own file which
then includes <linux/ipv6.h> (which in turn includes in6.h).
Change-Id: Ie161f376edda605e5cd87176169553176235fafd
Diffstat (limited to 'libgtp.pc.in')
0 files changed, 0 insertions, 0 deletions