r23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
authorJames Peach <jpeach@samba.org>
Thu, 19 Jul 2007 04:37:38 +0000 (04:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:49 +0000 (12:28 -0500)
not plain old LINUX.

source/modules/vfs_default.c

index 08dd61609cdb31ace89fcf14e1921e74541db8e2..6d14e475f1c10d060837806ad5bd4f3b60207605 100644 (file)
@@ -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