Subject: [Boost-bugs] [Boost C++ Libraries] #4662: asio is not usable on NetBSD (using kqueue)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-20 11:25:38
#4662: asio is not usable on NetBSD (using kqueue)
---------------------------------------------------+------------------------
Reporter: Arnaud Degroote <degroote@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.44.0 | Severity: Showstopper
Keywords: |
---------------------------------------------------+------------------------
NetBSD uses an intptr_t to store udata in kqueue structure, contrary to
FreeBSD/OpenBSD which use a void*. It leads to various compilation
failures (invalid cast between descriptor_data and intptr_t) from
kqueue_reactor.ipp
The attached patch fixes the issue (calling reinterpret_cast<> in the
NetBSD case). With this patch, I'm able to pass most of the asio test on
NetBSD (still a few errors in the multicast case, I may investigate on it
later) (the patch is untested on other BSD, but the conditional macro must
be ok).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4662> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC