]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix build without xen
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 14 Jun 2016 06:21:01 +0000 (08:21 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 14 Jun 2016 06:25:25 +0000 (08:25 +0200)
Commit 11567cf66f36 introduced an include which will only work when
building with xen (particularly libxl).  However, that file is supposed
to be includable from anywhere (as with other testutils* files.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/testutilsxen.h

index 8b997c32325cdb079c25f6e250a718ae175eb9db..2facf5e5afa5af4239f5fc734b72af80f0c7021b 100644 (file)
@@ -2,7 +2,9 @@
 # define _TESTUTILSXEN_H_
 
 # include "capabilities.h"
-# include "libxl/libxl_capabilities.h"
+# ifdef WITH_LIBXL
+#  include "libxl/libxl_capabilities.h"
+# endif
 
 virCapsPtr testXenCapsInit(void);