From: James Peach Date: Thu, 19 Jul 2007 04:37:38 +0000 (+0000) Subject: r23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX, X-Git-Tag: samba-misc-tags/initial-v3-2-unstable~663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234cb7c893172edeb6802ac02304a041b33ee939;p=thirdparty%2Fsamba.git r23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX, not plain old LINUX. --- diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c index 08dd61609cd..6d14e475f1c 100644 --- a/source/modules/vfs_default.c +++ b/source/modules/vfs_default.c @@ -826,10 +826,11 @@ static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, START_PROFILE(syscall_linux_setlease); -#ifdef LINUX +#ifdef HAVE_KERNEL_OPLOCKS_LINUX /* first set the signal handler */ - if(linux_set_lease_sighandler(fd) == -1) + if(linux_set_lease_sighandler(fd) == -1) { return -1; + } result = linux_setlease(fd, leasetype); #else