]> git.llucax.com Git - software/libev.git/blobdiff - event.c
- have to re-check potentially closed fds regularly for epoll. this hurts
[software/libev.git] / event.c
diff --git a/event.c b/event.c
index b34774cc3a11605fabbb1369f32bcbcce5439c9c..cf7739c0f64ff77dfb69e0f812a1c2de448c3fe4 100644 (file)
--- a/event.c
+++ b/event.c
@@ -91,7 +91,7 @@ void *event_init (void)
 #else
   assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur));
 
-  x_cur = (struct event_base *)ev_default_loop (EVMETHOD_AUTO);
+  x_cur = (struct event_base *)(long)ev_default_loop (EVMETHOD_AUTO);
 #endif
 
   return x_cur;