summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 4e86506..617f5ad 100644
--- a/ev.c
+++ b/ev.c
@@ -289,6 +289,11 @@ extern "C" {
#if EV_USE_INOTIFY
# include <sys/inotify.h>
+/* some very old inotify.h headers don't have IN_DONT_FOLLOW */
+# ifndef IN_DONT_FOLLOW
+# undef EV_USE_INOTIFY
+# define EV_USE_INOTIFY 0
+# endif
#endif
#if EV_SELECT_IS_WINSOCKET