$NetBSD: patch-ai,v 1.3 2011/11/06 21:54:32 tnn Exp $

https://svn.boost.org/trac/boost/ticket/6098

--- boost/asio/detail/impl/kqueue_reactor.ipp.orig	2011-11-06 17:01:14.000000000 +0000
+++ boost/asio/detail/impl/kqueue_reactor.ipp
@@ -318,9 +318,9 @@ void kqueue_reactor::deregister_descript
     {
       struct kevent events[2];
       BOOST_ASIO_KQUEUE_EV_SET(&events[0], descriptor,
-          EVFILT_READ, EV_DELETE, 0, 0, 0);
+          EVFILT_READ, EV_DELETE, 0, 0, (void*)0);
       BOOST_ASIO_KQUEUE_EV_SET(&events[1], descriptor,
-          EVFILT_WRITE, EV_DELETE, 0, 0, 0);
+          EVFILT_WRITE, EV_DELETE, 0, 0, (void*)0);
       ::kevent(kqueue_fd_, events, 2, 0, 0, 0);
     }
 
@@ -359,9 +359,9 @@ void kqueue_reactor::deregister_internal
   {
     struct kevent events[2];
     BOOST_ASIO_KQUEUE_EV_SET(&events[0], descriptor,
-        EVFILT_READ, EV_DELETE, 0, 0, 0);
+        EVFILT_READ, EV_DELETE, 0, 0, (void*)0);
     BOOST_ASIO_KQUEUE_EV_SET(&events[1], descriptor,
-        EVFILT_WRITE, EV_DELETE, 0, 0, 0);
+        EVFILT_WRITE, EV_DELETE, 0, 0, (void*)0);
     ::kevent(kqueue_fd_, events, 2, 0, 0, 0);
 
     op_queue<operation> ops;
