From e108a3c110506faf3ef43448be3e0d39ef0ead8f Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Thu, 21 Jun 2012 11:44:35 +0000 Subject: [PATCH] xenstore: Use In the next release of Xen (4.2), xs.h became deprecated. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- configure | 2 +- hw/xen_common.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b68c0ca194..c4e49602b9 100755 --- a/configure +++ b/configure @@ -1381,7 +1381,7 @@ EOF elif ( cat > $TMPC < -#include +#include #include #include #if !defined(HVM_MAX_VCPUS) diff --git a/hw/xen_common.h b/hw/xen_common.h index fe7f227f92..cc99204e8b 100644 --- a/hw/xen_common.h +++ b/hw/xen_common.h @@ -7,7 +7,11 @@ #include #include -#include +#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 420 +# include +#else +# include +#endif #include #include "hw.h"