]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: remove unused fallback defines in oplock_linux.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 19:02:33 +0000 (19:02 +0000)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock_linux.c

index 44ed976b92cbd63237313ebd86f9fc7886959101..a4f79297abd243ecd58efe64a067378ec8381b1a 100644 (file)
 
 #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
  */