[PATCH] Fix build without xen

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

 



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@xxxxxxxxxx>
---
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

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