diff options
author | Ralph Boehme <slow@samba.org> | 2017-03-06 12:09:53 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-03-14 12:49:24 +0100 |
commit | 6bd678c9d2c329ce00db1c1ded6a1c9e8e1b7f82 (patch) | |
tree | 8f50406a4befccc31b48fa4069fee9f6fa26218b | |
parent | 213759fb65881280cb467d96eb7289e4b55ee07e (diff) | |
download | samba-6bd678c9d2c329ce00db1c1ded6a1c9e8e1b7f82.tar.gz |
s3/wscript: fix Linux kernel oplock detection
Fix a copy/paste error, the Linux kernel oplocks check was copied from
the change notify support check.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=7537
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit fe473f805af885a23bb16046c9d26d756e164f30)
-rw-r--r-- | source3/wscript | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript index cd63f742734..a345d3e98e2 100644 --- a/source3/wscript +++ b/source3/wscript @@ -159,11 +159,11 @@ main() { #include <sys/types.h> #include <fcntl.h> #include <signal.h> -#ifndef F_NOTIFY -#define F_NOTIFY 1026 +#ifndef F_GETLEASE +#define F_GETLEASE 1025 #endif main() { - exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0); + exit(fcntl(open("/tmp", O_RDONLY), F_GETLEASE, 0) == -1 ? 1 : 0); }''', 'HAVE_KERNEL_OPLOCKS_LINUX', addmain=False, execute=True, msg="Checking for Linux kernel oplocks") |