[PATCH] stats_linux.c: Only include xs.h if WITH_XEN.

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

 



Fixes compile error when building --without-xen on a host that has no
Xen headers installed.
---
 src/stats_linux.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/stats_linux.c b/src/stats_linux.c
index 5e6d06c..125af45 100644
--- a/src/stats_linux.c
+++ b/src/stats_linux.c
@@ -19,7 +19,9 @@
 #include <string.h>
 #include <unistd.h>
 
+#ifdef WITH_XEN
 #include <xs.h>
+#endif
 
 #include "internal.h"
 #include "xen_unified.h"
-- 
1.5.3.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]