summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-05 17:17:25 +1000
committerAndrew Tridgell <tridge@samba.org>2007-05-05 17:17:25 +1000
commit3bfeb3d2352f6dce951309315c11f5341e4a2b67 (patch)
tree9bf69417f4359895e1f9be7c21221e8d654ef336 /ctdb/lib/replace
parentd903e9542d6e04f757d523774098807259e83561 (diff)
- added a EVENT_FD_AUTOCLOSE flag that allows you to tell the event system to close the fd automatically when a fd_event is freed. This prevents races which can lead to epoll missing events
- added autoconf rules for automatically building with epoll support (This used to be ctdb commit 4d113298b26f7163992f2e47429c953bd4f957c9)
Diffstat (limited to 'ctdb/lib/replace')
-rw-r--r--ctdb/lib/replace/system/select.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/lib/replace/system/select.h b/ctdb/lib/replace/system/select.h
index 20346259c2..465e005349 100644
--- a/ctdb/lib/replace/system/select.h
+++ b/ctdb/lib/replace/system/select.h
@@ -26,6 +26,10 @@
#include <sys/select.h>
#endif
+#ifdef HAVE_SYS_EPOLL_H
+#include <sys/epoll.h>
+#endif
+
#ifndef SELECT_CAST
#define SELECT_CAST
#endif