[libvirt] [PATCH] Fix build without xen
Martin Kletzander
mkletzan at redhat.com
Tue Jun 14 06:28:22 UTC 2016
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 at redhat.com>
---
Pushed under the build-breaker rule.
tests/testutilsxen.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/testutilsxen.h b/tests/testutilsxen.h
index 8b997c32325c..2facf5e5afa5 100644
--- a/tests/testutilsxen.h
+++ b/tests/testutilsxen.h
@@ -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);
--
2.8.4
More information about the libvir-list
mailing list