Mercurial > nginx
changeset 9434:13426789d655
Events: compatibility with NetBSD 10.0 in kqueue.
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.
| author | Sergey Kandaurov <pluknet@nginx.com> |
|---|---|
| date | Thu, 10 Jul 2025 16:59:05 +0400 |
| parents | 0afc152028f0 |
| children | efb06290410c |
| files | src/event/modules/ngx_kqueue_module.c |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/modules/ngx_kqueue_module.c Thu Jul 10 16:30:35 2025 +0400 +++ b/src/event/modules/ngx_kqueue_module.c Thu Jul 10 16:59:05 2025 +0400 @@ -10,9 +10,9 @@ #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 #else #define NGX_KQUEUE_UDATA_T (void *)
