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"