]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix redefinition of struct in6_addr 1029/head
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 19 May 2016 19:51:27 +0000 (21:51 +0200)
committerJörg Krause <joerg.krause@embedded.rocks>
Mon, 23 May 2016 18:55:46 +0000 (20:55 +0200)
commit07d10e71d514733e2219794d07b4dce913f48aea
treed019c287a8a50f07c20afc8c62313ae331b49461
parent7679fc22f62dfeadbf516090cc97088eaeea3dc6
Fix redefinition of struct in6_addr

struct in6_addr is both defined in the C library header <netinet/in.h>
and the Linux kernel header <linux/in6.h>.

lxc_user_nic.c includes both <netinet/in.h> and <linux/if_bridge.h>. The
later one includes <linux/in6.h>.

This breaks build with the musl libc:
  error: redefinition of ‘struct in6_addr’

As lxc_user_nic.c does not use any references from <linux/if_bridge.h> it
is safe to remove this header.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
src/lxc/lxc_user_nic.c