--- ./source4/ntvfs/sysdep/wscript_configure.orig 2012-10-02 08:24:48.000000000 +0000 +++ ./source4/ntvfs/sysdep/wscript_configure 2013-02-05 04:12:51.909866322 +0000 @@ -5,5 +5,8 @@ conf.CHECK_DECLS('F_SETLEASE', headers='linux/fcntl.h', reverse=True) conf.CHECK_DECLS('SA_SIGINFO', headers='signal.h', reverse=True) +conf.SET_TARGET_TYPE('inotify', 'EMPTY') +conf.CHECK_FUNCS_IN('inotify_init', 'inotify', checklibc=True, headers='sys/inotify.h') + if (conf.CONFIG_SET('HAVE_SYS_INOTIFY_H')): conf.DEFINE('HAVE_LINUX_INOTIFY', 1)