The error code ERROR_REMUS_XXX was introduced in Xen 4.5, and changed to ERROR_CHECKPOINT_XXX after previous renaming. The patch fix the backword compatibility.
Signed-off-by: Yang Hongyang <hongyang.y...@easystack.cn> Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> --- tools/libxl/libxl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index 67a4ad7..2a26ba2 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -883,6 +883,19 @@ void libxl_mac_copy(libxl_ctx *ctx, libxl_mac *dst, libxl_mac *src); */ #define LIBXL_HAVE_CHECKPOINTED_STREAM 1 +/* Remus stuff */ +/* + * ERROR_REMUS_XXX error code only exists from Xen 4.5, and in Xen 4.6 + * it is changed to ERROR_CHECKPOINT_XXX + */ +#if defined(LIBXL_API_VERSION) && LIBXL_API_VERSION >= 0x040500 \ + && LIBXL_API_VERSION < 0x040600 +#define ERROR_REMUS_DEVOPS_DOES_NOT_MATCH \ + ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH +#define ERROR_REMUS_DEVICE_NOT_SUPPORTED \ + ERROR_CHECKPOINT_DEVICE_NOT_SUPPORTED +#endif + typedef char **libxl_string_list; void libxl_string_list_dispose(libxl_string_list *sl); int libxl_string_list_length(const libxl_string_list *sl); -- 2.5.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel