--- a/mysys/kqueue_timers.c 2023-10-11 19:42:50.000000000 +0800 +++ b/mysys/kqueue_timers.c 2024-09-02 16:18:37.000000000 +0800 @@ -150,7 +150,11 @@ { struct kevent kev; +#if defined(NOTE_TRIGGER) EV_SET(&kev, 0, EVFILT_USER, 0, NOTE_TRIGGER, 0, 0); +#elif defined(EV_TRIGGER) + EV_SET(&kev, 0, EVFILT_USER, EV_TRIGGER, 0, 0, 0); +#endif if (kevent(kq_fd, &kev, 1, NULL, 0, NULL) < 0) my_message_local(ERROR_LEVEL,