|
Recent NetBSD builds have changed the API of kqueue's EV_SET to match other OSen. The following patch fixes the build:
--- src/third_party/asio-master/asio/include/asio/detail/impl/kqueue_reactor.ipp.old 2020-03-24 18:20:28.526412948 +1100
|
+++ src/third_party/asio-master/asio/include/asio/detail/impl/kqueue_reactor.ipp 2020-03-27 14:46:34.262866049 +1100
|
@@ -28,6 +28,9 @@
|
#include "asio/detail/push_options.hpp"
|
|
#if defined(__NetBSD__)
|
+# include <sys/param.h>
|
+#endif
|
+#if defined(__NetBSD__) && __NetBSD_Version__ < 999001500
|
# define ASIO_KQUEUE_EV_SET(ev, ident, filt, flags, fflags, data, udata) \
|
EV_SET(ev, ident, filt, flags, fflags, data, \
|
reinterpret_cast<intptr_t>(static_cast<void*>(udata)))
|
{{}}Also created upstream pull request:
https://github.com/boostorg/asio/pull/334
|