fix typo.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-base / samba / samba-3.0.37 / kernel-oplocks.patch
1 Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
2 not plain old LINUX.
3
4 http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=23962&view=rev
5 --- source/modules/vfs_default.c.orig   2010-09-06 17:37:48.256826182 +0200
6 +++ source/modules/vfs_default.c        2010-09-06 17:38:25.300843377 +0200
7 @@ -813,10 +813,11 @@
8  
9         START_PROFILE(syscall_linux_setlease);
10  
11 -#ifdef LINUX
12 +#ifdef HAVE_KERNEL_OPLOCKS_LINUX
13         /* first set the signal handler */
14 -       if(linux_set_lease_sighandler(fd) == -1)
15 +       if(linux_set_lease_sighandler(fd) == -1) {
16                 return -1;
17 +       }
18  
19         result = linux_setlease(fd, leasetype);
20  #else