]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Make sure the interface version is always correctly set
authorJulien Grall <julien.grall@citrix.com>
Thu, 24 Sep 2015 21:02:23 +0000 (22:02 +0100)
committerJulien Grall <julien.grall@citrix.com>
Sun, 4 Oct 2015 19:41:18 +0000 (20:41 +0100)
sys/xen/interface/xen-compat.h

index d8c55bfc8f631c9888ff459ff80ad7730d9c6e48..c1cc562c0fab1281f4fdd3e810b94d7adefa9832 100644 (file)
 /* Xen is built with matching headers and implements the latest interface. */
 #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
 #elif !defined(__XEN_INTERFACE_VERSION__)
-/* Guests which do not specify a version get the legacy interface. */
-#define __XEN_INTERFACE_VERSION__ 0x00000000
+/*
+ * The interface version is not set if and only if xen/xen-os.h is not
+ * included.
+ */
+#error "Please include xen/xen-os.h"
 #endif
 
 #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__