From 1b2e67641f2df766d099696a11e7b5122f5851cf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 Dec 2020 11:24:43 +0100 Subject: [PATCH] s3/wscript: remove unused check for F_NOTIFY There're no references to F_NOTIFY nor HAVE_KERNEL_CHANGE_NOTIFY in the code, so the configure check is not needed at all. We only use the inotify or fam abstractions. Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/wscript | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/source3/wscript b/source3/wscript index a370fae667f..cb51511353f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -165,17 +165,6 @@ long ret = splice(0,0,1,0,400,SPLICE_F_MOVE); if conf.env.HAVE_SYS_INOTIFY_H: conf.DEFINE('HAVE_INOTIFY', 1) - # Check for kernel change notify support - conf.CHECK_CODE(''' -#ifndef F_NOTIFY -#define F_NOTIFY 1026 -#endif -main() { - exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0); -}''', 'HAVE_KERNEL_CHANGE_NOTIFY', addmain=False, execute=True, - headers='fcntl.h signal.h', - msg="Checking for kernel change notify support") - # Check for Linux kernel oplocks conf.CHECK_CODE(''' #include -- 2.47.3