$OpenBSD: patch-src_lib_asiolink_tcp_acceptor_h,v 1.1 2018/01/31 22:29:09 rsadowski Exp $

fix build with boost 1.66
- use native_handle() for getting native socket type
commit 17ed090beb6cefa78e29a95c645eb6da4edf8

Index: src/lib/asiolink/tcp_acceptor.h
--- src/lib/asiolink/tcp_acceptor.h.orig
+++ src/lib/asiolink/tcp_acceptor.h
@@ -44,7 +44,11 @@ class TCPAcceptor : public IOSocket { (public)
 
     /// @brief Returns file descriptor of the underlying socket.
     virtual int getNative() const final {
+#if BOOST_VERSION < 106600
         return (acceptor_->native());
+#else
+        return (acceptor_->native_handle());
+#endif
     }
 
     /// @brief Returns protocol of the socket.
