From 4ba6f1fa27cff07d1d0f481d6a9066cbbdf0cb68 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 29 Dec 2017 15:19:41 -0800 Subject: [PATCH] Fix stupid logic typo, that prevented monitoring from working. --- monitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.h b/monitor.h index 00731ba..c5e7b99 100644 --- a/monitor.h +++ b/monitor.h @@ -3,7 +3,7 @@ int monitor_insert_directory(int fd, char *name, const char * path); int monitor_remove_file(const char * path); int monitor_remove_directory(int fd, const char * path); -#if defined(HAVE_INOTIFY) && defined(HAVE_KQUEUE) +#if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE) #define HAVE_WATCH 1 int add_watch(int, const char *); #endif