mirror of
https://github.com/nginx/nginx.git
synced 2025-07-20 11:16:38 +08:00
Events: compatibility with NetBSD 10.0 in kqueue.
Some checks are pending
buildbot / buildbot (push) Waiting to run
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:
parent
3f5f8a7f51
commit
c52c5698cd
@ -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 *)
|
||||||
|
Loading…
Reference in New Issue
Block a user