]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: work around broken kernel header
authorEric Blake <eblake@redhat.com>
Mon, 14 Jan 2013 16:54:25 +0000 (09:54 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jan 2013 17:04:09 +0000 (10:04 -0700)
I got this scary warning during ./configure on rawhide:

checking linux/if_bridge.h usability... no
checking linux/if_bridge.h presence... yes
configure: WARNING: linux/if_bridge.h: present but cannot be compiled
configure: WARNING: linux/if_bridge.h:     check for missing prerequisite headers?
configure: WARNING: linux/if_bridge.h: see the Autoconf documentation
configure: WARNING: linux/if_bridge.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/if_bridge.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to libvir-list@redhat.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for linux/if_bridge.h... no

* configure.ac (AC_CHECK_HEADERS): Provide struct in6_addr, since
linux/if_bridge.h uses it without declaring it.

configure.ac

index 8a424e7cb0b51b31a8780fbeef53ec2938f16b67..1d0add5aab47b88af91d7beaca80a5d1366b3801 100644 (file)
@@ -978,7 +978,9 @@ dnl
 if test "$with_linux" = "yes"; then
   if test "$with_qemu" = "yes" || test "$with_lxc" = "yes" ; then
     AC_CHECK_HEADERS([linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h],,
-                     AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support]))
+      [AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support])],
+      [[#include <netinet/ip6.h>
+      ]])
   fi
 fi