Ticket #4662 (closed Bugs: fixed)
asio is not usable on NetBSD (using kqueue)
|Reported by:||Arnaud Degroote <degroote@…>||Owned by:||chris_kohlhoff|
|Milestone:||To Be Determined||Component:||asio|
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).
- Status changed from new to closed
- Resolution set to fixed