Events: compatibility with NetBSD 10.0 in kqueue.
Some checks are pending
buildbot / buildbot (push) Waiting to run

The kevent udata field was changed from intptr_t to "void *",
similar to other BSDs and Darwin.

The NGX_KQUEUE_UDATA_T macro is adjusted to reflect that change,
fixing -Werror=int-conversion errors.
This commit is contained in:
Sergey Kandaurov 2025-07-10 16:59:05 +04:00 committed by pluknet
parent 3f5f8a7f51
commit c52c5698cd

View File

@ -10,9 +10,9 @@
#include <ngx_event.h> #include <ngx_event.h>
/* NetBSD 2.0 incompatibly defines kevent.udata as "intptr_t" */ /* NetBSD up to 10.0 incompatibly defines kevent.udata as "intptr_t" */
#if (__NetBSD__) #if (__NetBSD__ && __NetBSD_Version__ < 1000000000)
#define NGX_KQUEUE_UDATA_T #define NGX_KQUEUE_UDATA_T
#else #else
#define NGX_KQUEUE_UDATA_T (void *) #define NGX_KQUEUE_UDATA_T (void *)