pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/unit: Fix build on NetBSD-CURRENT



Module Name:	pkgsrc-wip
Committed By:	Juraj Lutter <otis%NetBSD.org@localhost>
Pushed By:	otis
Date:		Thu Feb 4 23:50:23 2021 +0100
Changeset:	5087f3498f7019090ca7f5f5909157f7adc65411

Added Files:
	unit/patches/patch-src_nxt__kqueue__engine.c

Log Message:
wip/unit: Fix build on NetBSD-CURRENT

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5087f3498f7019090ca7f5f5909157f7adc65411

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 unit/patches/patch-src_nxt__kqueue__engine.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diffs:
diff --git a/unit/patches/patch-src_nxt__kqueue__engine.c b/unit/patches/patch-src_nxt__kqueue__engine.c
new file mode 100644
index 0000000000..145b1c9888
--- /dev/null
+++ b/unit/patches/patch-src_nxt__kqueue__engine.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Use correct types on NetBSD-CURRENT.
+
+--- src/nxt_kqueue_engine.c.orig	2021-02-04 15:22:33.000000000 +0000
++++ src/nxt_kqueue_engine.c
+@@ -39,8 +39,10 @@
+ #endif
+ 
+ 
+-#if (NXT_NETBSD)
+-/* NetBSD defines the kevent.udata field as intptr_t. */
++#if (NXT_NETBSD) && (defined(__NetBSD__) && __NetBSD_Version__ < 999001500)
++/* NetBSD up to 9.99.15 defines the kevent.udata field as intptr_t.
++ * NetBSD 9.99.16 onwards defines the kevent.udata field as void*
++ */
+ 
+ #define nxt_kevent_set_udata(udata)  (intptr_t) (udata)
+ #define nxt_kevent_get_udata(udata)  (void *) (udata)


Home | Main Index | Thread Index | Old Index