]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:smb2: remove unused fallback defines in oplock.c
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Dec 2020 11:06:11 +0000 (12:06 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 7 Dec 2020 20:07:18 +0000 (20:07 +0000)
F_SETLEASE/F_SETSIG were all included in the kernel
and glibc in 2002, there's no need to have fallbacks 18 years later.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Dec  7 20:07:18 UTC 2020 on sn-devel-184

source4/torture/smb2/oplock.c

index a30657ef596bc8cdce8e4b63f6b3ff88284f8405..ad9ef625a5aa25c829bee61106306061f45d1ac7 100644 (file)
@@ -5079,18 +5079,10 @@ done:
 
 #ifdef HAVE_KERNEL_OPLOCKS_LINUX
 
-#ifndef F_SETLEASE
-#define F_SETLEASE      1024
-#endif
-
 #ifndef RT_SIGNAL_LEASE
 #define RT_SIGNAL_LEASE (SIGRTMIN+1)
 #endif
 
-#ifndef F_SETSIG
-#define F_SETSIG 10
-#endif
-
 static int got_break;
 
 /*