From bb1c367a6d6be83830a828c86d27faf7123cda99 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 26 Mar 2026 12:25:41 -0400 Subject: [PATCH] kqueue: Add a no-op EV_ENABLE definition. EV_ADD implies ENABLE, so this isn't needed, but a lot of applications try to specify it anyway. So this extends source compatibility. If in the future we ever implement EV_DISABLE, we can just add a real definition for it then, and since ADD implies ENABLE existing applications shouldn't break. --- headers/compatibility/bsd/sys/event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/headers/compatibility/bsd/sys/event.h b/headers/compatibility/bsd/sys/event.h index 28bc13eb96..253bbe2236 100644 --- a/headers/compatibility/bsd/sys/event.h +++ b/headers/compatibility/bsd/sys/event.h @@ -86,6 +86,7 @@ struct kevent { /* actions */ #define EV_ADD 0x0001 /* add event to kq (implies enable) */ #define EV_DELETE 0x0002 /* delete event from kq */ +#define EV_ENABLE (0) /* (not needed) */ /* flags */ #define EV_ONESHOT 0x0010 /* only report one occurrence */