In configure.in, the following line:
should be replaced by
which then actually defines the symbol HAVE_INOTIFY_INIT which is being used in smbd/notify_inotify.c
Furthermore, I guess that
in smbd/notify_inotify.c should be moved in the "#ifndef HAVE_INOTIFY_INIT" conditional to avoid incompatible redefinition (the inotify_* functions are defined non-static in glibc-2.7).
Using <linux/inotify.h> with kernel-2.6.24 headers leads to such errors (in combination with a newer libcap-2.x):
In file included from smbd/notify_inotify.c:33:
/usr/include/linux/inotify.h:19: error: expected specifier-qualifier-list
smbd/notify_inotify.c: In function ‘filter_match’:
smbd/notify_inotify.c:102: error: ‘struct inotify_event’ has no member
... and add a line
to include/config.h of course :)
Created attachment 3142 [details]
The patch which does all the mentioned things :-)
Pushed to 3.0 and 3.2, thanks.