]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: further fixes for broken if_bridge.h
authorEric Blake <eblake@redhat.com>
Mon, 14 Jan 2013 17:47:41 +0000 (10:47 -0700)
committerCole Robinson <crobinso@redhat.com>
Tue, 26 Mar 2013 22:36:34 +0000 (18:36 -0400)
Commit c308a9ae was incomplete; it resolved the configure failure,
but not a later build failure.

* src/util/virnetdevbridge.c: Include pre-req header.
* configure.ac (AC_CHECK_HEADERS): Prefer standard in.h over
non-standard ip6.h.
(cherry picked from commit 1bf661caf4e926efcad6e85151a587cea5fd29f4)

configure.ac
src/util/virnetdevbridge.c

index 91e79c776e5414006f597228079d1f6302b6505f..9c6a806fabc3ad850e39f4b7af1f9b7b48cc0fd2 100644 (file)
@@ -950,7 +950,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/ip6.h>
+      [[#include <netinet/in.h>
       ]])
   fi
 fi
index 2c4a9eb125532578154be7058fd5cb29097fe515..4fcff77b53ed5517878cb3292af2d7141bf0f8fe 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Red Hat, Inc.
+ * Copyright (C) 2007-2013 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,6 +32,7 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <net/if.h>
+#include <netinet/in.h>
 
 #ifdef __linux__
 # include <linux/sockios.h>