From 200cc006cbe7c03477d4ce44111850ef854df2d0 Mon Sep 17 00:00:00 2001 From: bz Date: Thu, 11 Dec 2008 15:44:53 +0000 Subject: [PATCH] Error in case anyone tried to compile with both options VIMAGE and the (temporary) option VIMAGE_GLOBALS. Sponsored by: The FreeBSD Foundation: --- sys/sys/vimage.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/vimage.h b/sys/sys/vimage.h index fd6e00c0dc7..a4563f4efe1 100644 --- a/sys/sys/vimage.h +++ b/sys/sys/vimage.h @@ -60,6 +60,10 @@ struct vnet_modlink { .vmi_symmap = m_symmap \ }; +#if defined(VIMAGE) && defined(VIMAGE_GLOBALS) +#error "You cannot have both option VIMAGE and option VIMAGE_GLOBALS!" +#endif + #ifdef VIMAGE_GLOBALS #define VSYM(base, sym) (sym) #else -- 2.45.2