From: Ralph Boehme Date: Mon, 6 Mar 2017 11:09:53 +0000 (+0100) Subject: s3/wscript: fix Linux kernel oplock detection X-Git-Tag: samba-4.4.11~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bd678c9d2c329ce00db1c1ded6a1c9e8e1b7f82;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison (cherry picked from commit fe473f805af885a23bb16046c9d26d756e164f30) --- diff --git a/source3/wscript b/source3/wscript index cd63f742734..a345d3e98e2 100644 --- a/source3/wscript +++ b/source3/wscript @@ -159,11 +159,11 @@ main() { #include #include #include -#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")