|
Daniel P. Berrange |
5ed697 |
From 1bf661caf4e926efcad6e85151a587cea5fd29f4 Mon Sep 17 00:00:00 2001
|
|
Daniel P. Berrange |
5ed697 |
From: Eric Blake <eblake@redhat.com>
|
|
Daniel P. Berrange |
5ed697 |
Date: Mon, 14 Jan 2013 10:47:41 -0700
|
|
Daniel P. Berrange |
5ed697 |
Subject: [PATCH] build: further fixes for broken if_bridge.h
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
Commit c308a9ae was incomplete; it resolved the configure failure,
|
|
Daniel P. Berrange |
5ed697 |
but not a later build failure.
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
* src/util/virnetdevbridge.c: Include pre-req header.
|
|
Daniel P. Berrange |
5ed697 |
* configure.ac (AC_CHECK_HEADERS): Prefer standard in.h over
|
|
Daniel P. Berrange |
5ed697 |
non-standard ip6.h.
|
|
Daniel P. Berrange |
5ed697 |
---
|
|
Daniel P. Berrange |
5ed697 |
configure.ac | 2 +-
|
|
Daniel P. Berrange |
5ed697 |
src/util/virnetdevbridge.c | 3 ++-
|
|
Daniel P. Berrange |
5ed697 |
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
diff --git a/configure.ac b/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
index 3ab3c4e..712918f 100644
|
|
Daniel P. Berrange |
5ed697 |
--- a/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
+++ b/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
@@ -979,7 +979,7 @@ if test "$with_linux" = "yes"; then
|
|
Daniel P. Berrange |
5ed697 |
if test "$with_qemu" = "yes" || test "$with_lxc" = "yes" ; then
|
|
Daniel P. Berrange |
5ed697 |
AC_CHECK_HEADERS([linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h],,
|
|
Daniel P. Berrange |
5ed697 |
[AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support])],
|
|
Daniel P. Berrange |
5ed697 |
- [[#include <netinet/ip6.h>
|
|
Daniel P. Berrange |
5ed697 |
+ [[#include <netinet/in.h>
|
|
Daniel P. Berrange |
5ed697 |
]])
|
|
Daniel P. Berrange |
5ed697 |
fi
|
|
Daniel P. Berrange |
5ed697 |
fi
|
|
Daniel P. Berrange |
5ed697 |
diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c
|
|
Daniel P. Berrange |
5ed697 |
index b87c601..3c00be9 100644
|
|
Daniel P. Berrange |
5ed697 |
--- a/src/util/virnetdevbridge.c
|
|
Daniel P. Berrange |
5ed697 |
+++ b/src/util/virnetdevbridge.c
|
|
Daniel P. Berrange |
5ed697 |
@@ -1,5 +1,5 @@
|
|
Daniel P. Berrange |
5ed697 |
/*
|
|
Daniel P. Berrange |
5ed697 |
- * Copyright (C) 2007-2012 Red Hat, Inc.
|
|
Daniel P. Berrange |
5ed697 |
+ * Copyright (C) 2007-2013 Red Hat, Inc.
|
|
Daniel P. Berrange |
5ed697 |
*
|
|
Daniel P. Berrange |
5ed697 |
* This library is free software; you can redistribute it and/or
|
|
Daniel P. Berrange |
5ed697 |
* modify it under the terms of the GNU Lesser General Public
|
|
Daniel P. Berrange |
5ed697 |
@@ -32,6 +32,7 @@
|
|
Daniel P. Berrange |
5ed697 |
#include <sys/ioctl.h>
|
|
Daniel P. Berrange |
5ed697 |
#include <sys/socket.h>
|
|
Daniel P. Berrange |
5ed697 |
#include <net/if.h>
|
|
Daniel P. Berrange |
5ed697 |
+#include <netinet/in.h>
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
#ifdef __linux__
|
|
Daniel P. Berrange |
5ed697 |
# include <linux/sockios.h>
|
|
Daniel P. Berrange |
5ed697 |
--
|
|
Daniel P. Berrange |
5ed697 |
1.8.0.2
|
|
Daniel P. Berrange |
5ed697 |
|