]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Linux compat code: do not define KERNEL_VERSION macro
authorVMware, Inc <>
Thu, 17 Jun 2010 22:16:18 +0000 (15:16 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 22:16:18 +0000 (15:16 -0700)
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 <mvanzin@vmware.com>
open-vm-tools/modules/linux/shared/compat_version.h

index a8f04b85da4f71f5caa6db53a0aaf5281bdb9ed9..2932cc09dc4505f08174f994b244693bf06bc949 100644 (file)
@@ -33,9 +33,8 @@
 
 #include <linux/version.h>
 
-/* 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