s3/wscript: remove unused check for F_NOTIFY
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Dec 2020 10:24:43 +0000 (11:24 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 7 Dec 2020 19:02:33 +0000 (19:02 +0000)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/wscript

index a370fae667fc7eddedc47b141c71415132de4a11..cb51511353fdc4afdc3a581422ba3f8e5b723455 100644 (file)
@@ -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 <sys/types.h>