summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-05 20:29:53 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-05 20:35:09 +0100
commitb9c1f4a2e8aa8d8892ae11d1570dda6341a77417 (patch)
treef1562c768ed67d80033a5e67f6a205e62881d6dc /src
parent4d2391ee094553cc11ce84b7b81d39bdb89ec48e (diff)
Tweak the workaround for NetBSD's kqueue using intptr_t for udata.
Thanks to @niacat for getting this fixed upstream.
Diffstat (limited to 'src')
-rw-r--r--src/socketengines/socketengine_kqueue.cpp4
1 files changed, 2 insertions, 2 deletions
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<struct kevent> 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<intptr_t>(eh);
}
#else