ia64/xen-unstable

changeset 9627:0010df11836d

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@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Apr 07 00:32:54 2006 +0100 (2006-04-07)
parents b6c5920e5d99
children 0037e3e4da08
files xen/include/public/xen-compat.h
line diff
     1.1 --- a/xen/include/public/xen-compat.h	Thu Apr 06 18:58:39 2006 +0100
     1.2 +++ b/xen/include/public/xen-compat.h	Fri Apr 07 00:32:54 2006 +0100
     1.3 @@ -14,8 +14,11 @@
     1.4  #if defined(__XEN__)
     1.5  /* Xen is built with matching headers and implements the latest interface. */
     1.6  #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
     1.7 -#elif !defined(__XEN_INTERFACE_VERSION__)
     1.8 +#elif (__XEN_INTERFACE_VERSION__ - 0) == 0
     1.9  /* Guests which do not specify a version get the legacy interface. */
    1.10 +#ifdef __XEN_INTERFACE_VERSION__
    1.11 +#undef __XEN_INTERFACE_VERSION__
    1.12 +#endif
    1.13  #define __XEN_INTERFACE_VERSION__ 0x00000000
    1.14  #endif
    1.15