]> git.proxmox.com Git - qemu.git/commitdiff
xenstore: Use <xenstore.h>
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 21 Jun 2012 11:44:35 +0000 (11:44 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 21 Jun 2012 11:44:35 +0000 (11:44 +0000)
In the next release of Xen (4.2), xs.h became deprecated.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
configure
hw/xen_common.h

index b68c0ca194f5f696d5d7414ba67ef3db5849b175..c4e49602b97da4ada91ad9590099a0f0bf8cee6a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1381,7 +1381,7 @@ EOF
   elif (
       cat > $TMPC <<EOF
 #include <xenctrl.h>
-#include <xs.h>
+#include <xenstore.h>
 #include <stdint.h>
 #include <xen/hvm/hvm_info_table.h>
 #if !defined(HVM_MAX_VCPUS)
index fe7f227f92278d0e02e1d2aab144da1d12ee19b0..cc99204e8bd28e5a1d9b831d0606814a577edea9 100644 (file)
@@ -7,7 +7,11 @@
 #include <inttypes.h>
 
 #include <xenctrl.h>
-#include <xs.h>
+#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 420
+#  include <xs.h>
+#else
+#  include <xenstore.h>
+#endif
 #include <xen/io/xenbus.h>
 
 #include "hw.h"