git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efabd7f
)
r23962: Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
author
James Peach
<jpeach@samba.org>
Thu, 19 Jul 2007 04:37:38 +0000
(
04:37
+0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source/modules/vfs_default.c
b/source/modules/vfs_default.c
index 08dd61609cdb31ace89fcf14e1921e74541db8e2..6d14e475f1c10d060837806ad5bd4f3b60207605 100644
(file)
--- 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