mirror of
https://github.com/nginx/nginx.git
synced 2025-07-20 19:27:29 +08:00
Events: compatibility with NetBSD 10.0 in kqueue.
Some checks failed
buildbot / buildbot (push) Has been cancelled
Some checks failed
buildbot / buildbot (push) Has been cancelled
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>
|
||||
|
||||
|
||||
/* 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 *)
|
||||
|
Loading…
Reference in New Issue
Block a user