]> git.llucax.com Git - software/libev.git/commitdiff
*** empty log message ***
authorroot <root>
Sat, 22 Dec 2007 12:43:28 +0000 (12:43 +0000)
committerroot <root>
Sat, 22 Dec 2007 12:43:28 +0000 (12:43 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 7efc7e0bdc7bebb5413294064c5814ba38a9294e..f17a3fa3ee90fb2ef61f7996ceaf626ef74affef 100644 (file)
--- 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