summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2007-02-14 14:25:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:56 -0500
commit13ee4a535b2767b705d16d9edeb0d7fc333de2c9 (patch)
tree0e0d3ec197f33669ec6e3c60a471032958ecdbf7
parent5876136754173874e9d64263129caee66534c785 (diff)
downloadsamba-13ee4a535b2767b705d16d9edeb0d7fc333de2c9.tar.gz
samba-13ee4a535b2767b705d16d9edeb0d7fc333de2c9.tar.bz2
samba-13ee4a535b2767b705d16d9edeb0d7fc333de2c9.zip
r21339: Fix the non-linux build. This is more evidence that this needs to be
moved up one layer. (This used to be commit 552ae93b14ff1674a8b2f369e57ad2d7d0712a70)
-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;
}