From b9c1f4a2e8aa8d8892ae11d1570dda6341a77417 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 5 Oct 2019 20:29:53 +0100 Subject: Tweak the workaround for NetBSD's kqueue using intptr_t for udata. Thanks to @niacat for getting this fixed upstream. --- src/socketengines/socketengine_kqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp index 3bd6b187c..573f5282e 100644 --- a/src/socketengines/socketengine_kqueue.cpp +++ b/src/socketengines/socketengine_kqueue.cpp @@ -40,10 +40,10 @@ namespace */ std::vector changelist(8); -#ifdef __NetBSD__ +#if defined __NetBSD__ && __NetBSD_Version__ <= 999001400 inline intptr_t udata_cast(EventHandler* eh) { - // On NetBSD the last parameter of EV_SET is intptr_t. + // On NetBSD <10 the last parameter of EV_SET is intptr_t. return reinterpret_cast(eh); } #else -- cgit v1.2.3