aboutsummaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_kqueue.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-11-13 15:24:45 +0000
committerGravatar Sadie Powell2019-11-13 15:24:45 +0000
commit7b689363218f1f7cd8d07c4ec3eaf03788b196c1 (patch)
tree37bb397e948eac74cbd96a7e6ab637837622ffa0 /src/socketengines/socketengine_kqueue.cpp
parentMerge branch 'insp3' into master. (diff)
parentImprove the logic around connecting to a MySQL server. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/socketengines/socketengine_kqueue.cpp')
-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 f04022091..a2f9cf977 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