--- libev/ev_kqueue.c 2010/10/15 22:44:41 1.46 +++ libev/ev_kqueue.c 2010/10/15 22:48:25 1.47 @@ -97,7 +97,7 @@ } EV_RELEASE_CB; - EV_SET_TV (tv, timeout); + EV_TS_SET (ts, timeout); res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts); EV_ACQUIRE_CB; kqueue_changecnt = 0;