--- libev/event.c 2007/11/04 22:03:17 1.16 +++ libev/event.c 2007/11/04 23:14:11 1.17 @@ -91,7 +91,7 @@ #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;