diff --git a/res/res_timing_kqueue.c b/res/res_timing_kqueue.c index 99baefede5e8cb3a601c0c9d2371c090b3e5b9e0..c564046115c18a31b84ab325fbd0e712426892a2 100644 --- a/res/res_timing_kqueue.c +++ b/res/res_timing_kqueue.c @@ -147,11 +147,11 @@ static void kqueue_set_nsecs(struct kqueue_timer *our_timer, uint64_t nsecs) { struct timespec nowait = { 0, 1 }; #ifdef HAVE_KEVENT64 - struct kevent64 kev; + struct kevent64_s kev; EV_SET64(&kev, our_timer->handle, EVFILT_TIMER, EV_ADD | EV_ENABLE, NOTE_NSECONDS, - nsecs, NULL, 0, 0); - kevent64(our_timer->handle, &kev, 1, NULL, 0, &nowait); + nsecs, 0, 0, 0); + kevent64(our_timer->handle, &kev, 1, NULL, 0, 0, &nowait); #else struct kevent kev;