summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-12-22 12:43:28 +0000
committerroot <root>2007-12-22 12:43:28 +0000
commit6c87ad06d5447d73f6a064d1c3adc2af34d6100e (patch)
tree8363f07b14a405b23792128b0bd17f5c2dabb55e /ev.c
parent08ed0fbd9e065605f8ffbbae086efc2105539ce4 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 7efc7e0..f17a3fa 100644
--- a/ev.c
+++ b/ev.c
@@ -974,9 +974,18 @@ ev_recommended_backends (void)
unsigned int
ev_embeddable_backends (void)
{
+ int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT;
+
/* epoll embeddability broken on all linux versions up to at least 2.6.23 */
- return EVBACKEND_KQUEUE
- | EVBACKEND_PORT;
+ /* please fix it and tell me how to detect the fix */
+ flags &= ~EVBACKEND_EPOLL;
+
+#ifdef __APPLE__
+ /* is there anything thats not broken on darwin? */
+ flags &= ~EVBACKEND_KQUEUE;
+#endif
+
+ return flags;
}
unsigned int