]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build with latest rawhide kernel headers
authorEric Blake <eblake@redhat.com>
Fri, 13 Sep 2013 16:11:26 +0000 (10:11 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 16 Sep 2013 15:24:12 +0000 (09:24 -0600)
commite62e0094dcd0ca1484491a9cc62919473b647f11
tree2228957a918a18c836d8228e9cc641653db8e351
parentd79fe8b50b02c9cc68285b8d9d14ac32fde8a9ad
build: fix build with latest rawhide kernel headers

Bother those kernel developers.  In the latest rawhide, kernel
and glibc have now been unified so that <netinet/in.h> and
<linux/in6.h> no longer clash; but <linux/if_bridge.h> is still
not self-contained.  Because of the latest header change, the
build is failing with:

checking for linux/param.h... no
configure: error: You must install kernel-headers in order to compile libvirt with QEMU or LXC support

with details:

In file included from conftest.c:561:0:
/usr/include/linux/in6.h:71:18: error: field 'flr_dst' has incomplete type
  struct in6_addr flr_dst;

We need a workaround to avoid our workaround :)

* configure.ac (NETINET_LINUX_WORKAROUND): New test.
* src/util/virnetdevbridge.c (includes): Use it.

Signed-off-by: Eric Blake <eblake@redhat.com>
configure.ac
src/util/virnetdevbridge.c