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>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2006-04-07 00:32:54 +01:00
1 parent 08d906dfa1
commit 8dbed98102
1 file changed
+4 -1
+4 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.