summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes3
-rw-r--r--ev.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/Changes b/Changes
index 10a2086..346d5fc 100644
--- a/Changes
+++ b/Changes
@@ -1,9 +1,10 @@
Revision history for libev, a high-performance and full-featured event loop.
-WISH? monotonic clocks times/GetTickCount for coarse corrections?
+WISH? monotonic clocks times/GetTickCount for coarse corrections?
- ev_once now passes both timeout and io to the callback if both
occur concurrently, instead of giving timeouts precedence.
+ - disable EV_USE_INOTIFY when sys/inotify.h is too old.
3.44 Mon Sep 29 05:18:39 CEST 2008
- embed watchers now automatically invoke ev_loop_fork on the
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