]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change Linux kernel version check to 2.6.32 to fix build error.
authorVMware, Inc <>
Thu, 17 Jun 2010 21:12:27 +0000 (14:12 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 21:12:27 +0000 (14:12 -0700)
While creating PBMs for Ubuntu 10.04 RC, which is a 2.6.32-21.32
kernel, we were getting a compile-time error due to type mismatch
for the setsockopt prototype. An earlier change to this file assumed
that the error would occur on 2.6.34 or later, but in fact it is
a problem starting with 2.6.32-rc3.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/vsock/linux/af_vsock.c

index c0743e8be3e8f43b987947370f4e901e5a2730b3..3464f0d104d6d6126c6a2c2b6e095724401e4c51 100644 (file)
@@ -209,8 +209,7 @@ static unsigned int VSockVmciPoll(struct file *file,
 static int VSockVmciListen(struct socket *sock, int backlog);
 static int VSockVmciShutdown(struct socket *sock, int mode);
 
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32)
 typedef int VSockSetsockoptLenType;
 #else
 typedef unsigned int VSockSetsockoptLenType;