From: Julien Grall Date: Thu, 24 Sep 2015 21:02:23 +0000 (+0100) Subject: Make sure the interface version is always correctly set X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=21abc7694d88b3a671e64f25587a38c0e777b359;p=people%2Fjulieng%2Ffreebsd.git Make sure the interface version is always correctly set --- diff --git a/sys/xen/interface/xen-compat.h b/sys/xen/interface/xen-compat.h index d8c55bfc8f63..c1cc562c0fab 100644 --- a/sys/xen/interface/xen-compat.h +++ b/sys/xen/interface/xen-compat.h @@ -33,8 +33,11 @@ /* 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__