From: Stefan Metzmacher Date: Mon, 7 Dec 2020 11:06:11 +0000 (+0100) Subject: s4:torture:smb2: remove unused fallback defines in oplock.c X-Git-Tag: samba-4.14.0rc1~485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14768d0d54420fe19d914fe4e507cbbf5cb84434;p=thirdparty%2Fsamba.git s4:torture:smb2: remove unused fallback defines in oplock.c 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon Dec 7 20:07:18 UTC 2020 on sn-devel-184 --- diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c index a30657ef596..ad9ef625a5a 100644 --- a/source4/torture/smb2/oplock.c +++ b/source4/torture/smb2/oplock.c @@ -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; /*