summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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