]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: netdevip: Include vircommand.h
authorAndrea Bolognani <abologna@redhat.com>
Mon, 27 Jun 2016 08:33:00 +0000 (10:33 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 27 Jun 2016 10:42:48 +0000 (12:42 +0200)
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

index 0663e14e900d6c1360d2024a52f2d5c3f73fb7de..20f3ae1d4824bd6927079259a708474ae97495af 100644 (file)
@@ -31,6 +31,7 @@
 #include "virlog.h"
 #include "virstring.h"
 #include "virutil.h"
+#include "vircommand.h"
 
 #if HAVE_GETIFADDRS
 # include <ifaddrs.h>