blob: e850236898de709b29f5401563758b10e8e41d19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23962
---
source/modules/vfs_default.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: samba-3.0.33/source/modules/vfs_default.c
===================================================================
--- samba-3.0.33.orig/source/modules/vfs_default.c
+++ samba-3.0.33/source/modules/vfs_default.c
@@ -813,10 +813,11 @@ static int vfswrap_linux_setlease(vfs_ha
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
|