mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
08d906dfa1
commit
8dbed98102
1 file changed
+4
-1
@@ -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
|
||||
|
||||
|
||||