[libvirt] [PATCH 5/7] Fix conditional build of virNetDevSetupControlFull
Peter Krempa
pkrempa at redhat.com
Thu Mar 7 17:34:04 UTC 2013
On 03/07/13 17:41, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The virNetDevSetupControlFull function was protected by a
Part of the sentence missing?
> Update the conditionals around all callers to do stricter
> checks to ensure we always build
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/util/virnetdevbridge.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c
> index 3c00be9..9d46cc4 100644
> --- a/src/util/virnetdevbridge.c
> +++ b/src/util/virnetdevbridge.c
> @@ -46,7 +46,7 @@
> #define VIR_FROM_THIS VIR_FROM_NONE
>
> SIOCBRADDBR
> -#ifdef SIOCBRADDBR
> +#if defined(HAVE_STRUCT_IFREQ) && defined(__linux__)
Doesn't follow the pattern established in the rest of the patch:
s/__linux__/SIOCBRADDBR/
> static int virNetDevSetupControlFull(const char *ifname,
> struct ifreq *ifr,
> int domain,
ACK with the change and commit message fixed.
Peter
More information about the libvir-list
mailing list