From: Stefan Metzmacher Date: Mon, 7 Dec 2020 11:06:11 +0000 (+0100) Subject: s3:smbd: remove unused fallback defines in oplock_linux.c X-Git-Tag: samba-4.14.0rc1~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30c1c153650ec23860b59bbcd86bb8e6a1460c42;p=thirdparty%2Fsamba.git s3:smbd: remove unused fallback defines in oplock_linux.c F_GETLEASE/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 --- diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index 44ed976b92c..a4f79297abd 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -25,22 +25,10 @@ #ifdef HAVE_KERNEL_OPLOCKS_LINUX -#ifndef F_SETLEASE -#define F_SETLEASE 1024 -#endif - -#ifndef F_GETLEASE -#define F_GETLEASE 1025 -#endif - #ifndef RT_SIGNAL_LEASE #define RT_SIGNAL_LEASE (SIGRTMIN+1) #endif -#ifndef F_SETSIG -#define F_SETSIG 10 -#endif - /* * Call to set the kernel lease signal handler */