]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: skip qemu in tests when !WITH_QEMU
authorEric Blake <eblake@redhat.com>
Fri, 31 May 2013 16:47:22 +0000 (10:47 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 31 May 2013 17:35:34 +0000 (11:35 -0600)
A mingw build (where the qemu driver is not built, so WITH_QEMU
is undefined) failed with:

In file included from ../../src/qemu/qemu_command.h:30:0,
                 from ../../tests/testutilsqemu.h:4,
                 from ../../tests/networkxml2xmltest.c:14:
../../src/qemu/qemu_conf.h:53:4: error: #error "Port me"

But since testutilsqemu.c is already conditional, the header
should be likewise.

* tests/testutilsqemu.h: Make content conditional.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/testutilsqemu.h

index 2ca42ab3c651f89c0986d3f08fdb700f4dcdff3c..f01b722d7cfaddd6a4fad6a9c126264f64aa46f8 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef WITH_QEMU
 
-#include "capabilities.h"
-#include "domain_conf.h"
-#include "qemu/qemu_command.h"
+# include "capabilities.h"
+# include "domain_conf.h"
+# include "qemu/qemu_command.h"
 
 virCapsPtr testQemuCapsInit(void);
 virDomainXMLOptionPtr testQemuXMLConfInit(void);
 extern qemuBuildCommandLineCallbacks testCallbacks;
+#endif