mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-wafbuild: Fix inotify detection (bug 8580)
Enable inotify if sys or kernel inotify is available. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 7 16:28:38 CET 2011 on sn-devel-104
This commit is contained in:
parent
846809853a
commit
b9e6c48678
@ -117,8 +117,9 @@ long ret = splice(0,0,1,0,400,0);
|
||||
# Check for inotify support
|
||||
conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h')
|
||||
conf.CHECK_FUNCS('inotify_init')
|
||||
if "HAVE_LINUX_INOTIFY_H" in conf.env and "HAVE_INOTIFY_INIT" in conf.env:
|
||||
conf.DEFINE('HAVE_INOTIFY', 1)
|
||||
if "HAVE_INOTIFY_INIT" in conf.env:
|
||||
if "HAVE_LINUX_INOTIFY_H" in conf.env or "HAVE_SYS_INOTIFY_H" in conf.env:
|
||||
conf.DEFINE('HAVE_INOTIFY', 1)
|
||||
|
||||
# Check for kernel change notify support
|
||||
conf.CHECK_CODE('''
|
||||
|
Loading…
Reference in New Issue
Block a user