--- libev/ev_kqueue.c 2011/06/04 05:33:29 1.51 +++ libev/ev_kqueue.c 2012/02/12 08:38:31 1.52 @@ -196,3 +196,6 @@ fd_rearm_all (EV_A); } +/* sys/event.h defines EV_ERROR */ +#undef EV_ERROR +