[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Support __XEN_INTERFACE_VERSION__ defined to the empty string.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 0010df11836d182fbb00ebcc016e9e51705470e0 # Parent b6c5920e5d998d8055a8b2f540462ace3e860d99 Support __XEN_INTERFACE_VERSION__ defined to the empty string. This can happen when building Linux with an old .config file which doesn't have a value for CONFIG_XEN_INTERFACE_VERSION. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r b6c5920e5d99 -r 0010df11836d xen/include/public/xen-compat.h --- a/xen/include/public/xen-compat.h Thu Apr 6 17:58:39 2006 +++ b/xen/include/public/xen-compat.h Thu Apr 6 23:32:54 2006 @@ -14,8 +14,11 @@ #if defined(__XEN__) /* Xen is built with matching headers and implements the latest interface. */ #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__ -#elif !defined(__XEN_INTERFACE_VERSION__) +#elif (__XEN_INTERFACE_VERSION__ - 0) == 0 /* Guests which do not specify a version get the legacy interface. */ +#ifdef __XEN_INTERFACE_VERSION__ +#undef __XEN_INTERFACE_VERSION__ +#endif #define __XEN_INTERFACE_VERSION__ 0x00000000 #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |