summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-11 05:57:58 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-11 05:57:58 +0000
commitb28cc4163bc2faaa80c5782fc02c8f03c410cdeb (patch)
tree58a5eda9a58f43d9f6bad4f7037ee852f69bf00e /source/include/includes.h
parent1871d4a3f64401f9a6f749ce26d1715e3bcdeac3 (diff)
downloadsamba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.tar.gz
samba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.tar.xz
samba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.zip
Linux kernel oplocks now seem to work, but need a _lot_ of testing
I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
Diffstat (limited to 'source/include/includes.h')
-rw-r--r--source/include/includes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index 432fd09f0bc..a30a8448ad5 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -868,6 +868,18 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#include <dlfcn.h>
#endif
+#if HAVE_KERNEL_OPLOCKS_LINUX
+#ifndef F_SETLEASE
+#define F_SETLEASE 1024
+#endif
+#ifndef F_GETLEASE
+#define F_GETLEASE 1025
+#endif
+#ifndef CAP_LEASE
+#define CAP_LEASE 28
+#endif
+#endif
+
extern int DEBUGLEVEL;
#endif /* _INCLUDES_H */