From: VMware, Inc <> Date: Thu, 17 Jun 2010 22:16:18 +0000 (-0700) Subject: Linux compat code: do not define KERNEL_VERSION macro X-Git-Tag: 2010.06.16-268169~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ceebca08ccd8092f7a3e3745bcd30810fdb538c;p=thirdparty%2Fopen-vm-tools.git Linux compat code: do not define KERNEL_VERSION macro KERNEL_VERSION exists in kernel sources since 2.1.90 so if we can't find it that means environment is busted and we better stop instead of defining it ourselves. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/shared/compat_version.h b/open-vm-tools/modules/linux/shared/compat_version.h index a8f04b85d..2932cc09d 100644 --- a/open-vm-tools/modules/linux/shared/compat_version.h +++ b/open-vm-tools/modules/linux/shared/compat_version.h @@ -33,9 +33,8 @@ #include -/* Appeared in 2.1.90 --hpreg */ #ifndef KERNEL_VERSION -# define KERNEL_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c)) +# error KERNEL_VERSION macro is not defined, environment is busted #endif