Re: [PATCH 5/7] Fix conditional build of virNetDevSetupControlFull

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/07/13 17:41, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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@xxxxxxxxxx>
---
  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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]