ref: 7c65a52929d95ad5a4108706bb32c7c7f754b193
parent: 8c6dee8c450f9a7d9b97e51d47429d353a42ff9d
author: libredev <libredev@ircforever.org>
date: Wed Mar 22 15:32:34 EDT 2023
fixed openbsd build 2
--- a/main.c
+++ b/main.c
@@ -389,7 +389,7 @@
fatal("epoll_ctl:");
#else
struct kevent ev;
- EV_SET(&ev, fd, EV_WRITE, EV_DISABLE, 0, 0, 0);
+ EV_SET(&ev, fd, EVFILT_WRITE, EV_DISABLE, 0, 0, 0);
if (kevent(kqfd, &ev, 1, NULL, 0, NULL) == -1)
fatal("kevent:");
fd_register(fd, EV_READ);