r21091: Fix the build without inotify
authorVolker Lendecke <vlendec@samba.org>
Wed, 31 Jan 2007 14:36:50 +0000 (14:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:36 +0000 (12:17 -0500)
source/smbd/notify.c

index 2907bd7e0f47ff438eae32a179676877be608399..49219bcca5277b390dd6d9a3cddefc260fe6f8b5 100644 (file)
@@ -610,6 +610,10 @@ NTSTATUS sys_notify_watch(struct sys_notify_context *ctx,
                                           struct notify_event *ev),
                          void *private_data, void *handle)
 {
+#ifdef HAVE_INOTIFY
        return inotify_watch(ctx, e, callback, private_data, handle);
+#else
+       return NT_STATUS_OK;
+#endif
 }