]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: work around broken kernel header
authorCole Robinson <crobinso@redhat.com>
Tue, 26 Mar 2013 21:53:54 +0000 (17:53 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 8 May 2013 18:15:39 +0000 (14:15 -0400)
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.
(cherry picked from commit c308a9ae153db619fc0366bad9fd8f6c49cfac58)
(cherry picked from commit 7ae53f15936277dfc777539ce13970293fdb03d0)
(cherry picked from commit 879f28a9f33be343c848e78923e9c4afe40f12ae)

Conflicts:
configure.ac

configure.ac

index 9e7deba8179083e5a013cbbbf496f8fe9feec75b..94395d770489280b16de51acd876fbf9f11b8996 100644 (file)
@@ -859,7 +859,7 @@ 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])],
-      [[#include <netinet/in.h>
+      [[#include <netinet/ip6.h>
       ]])
   fi
 fi