--- libev/ev_kqueue.c 2007/11/23 05:29:16 1.23 +++ libev/ev_kqueue.c 2007/11/23 13:08:57 1.24 @@ -102,7 +102,7 @@ { int fd = kqueue_events [i].ident; - if (kqueue_events [i].flags & EV_ERROR) + if (expect_false (kqueue_events [i].flags & EV_ERROR)) { int err = kqueue_events [i].data;