mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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 <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
058f96f4c4
commit
1b2e67641f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user