summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_default.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 90fd30c604..bd7bea5258 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -790,12 +790,14 @@ static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp,
START_PROFILE(syscall_linux_setlease);
+#ifdef LINUX
/* first set the signal handler */
if(linux_set_lease_sighandler(fd) == -1)
return -1;
result = linux_setlease(fd, leasetype);
+#endif
END_PROFILE(syscall_linux_setlease);
return result;
}