[PATCH 1/2] util: netdevip: Include vircommand.h

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

 



Not including the header causes

  util/virnetdevip.c:520:5: error:
  unknown type name 'virCommandPtr'; did you mean 'virCondPtr'?
    virCommandPtr cmd = NULL;
    ^~~~~~~~~~~~~

and plenty more similar failures when compiling on FreeBSD.
---
 src/util/virnetdevip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virnetdevip.c b/src/util/virnetdevip.c
index 0663e14..20f3ae1 100644
--- a/src/util/virnetdevip.c
+++ b/src/util/virnetdevip.c
@@ -31,6 +31,7 @@
 #include "virlog.h"
 #include "virstring.h"
 #include "virutil.h"
+#include "vircommand.h"
 
 #if HAVE_GETIFADDRS
 # include <ifaddrs.h>
-- 
2.7.4

--
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]