$OpenBSD: patch-src_net_common_clientthread_cpp,v 1.3 2018/01/31 08:51:40 rsadowski Exp $

fix build with boost 1.66
- use io_context instead of io_service

Index: src/net/common/clientthread.cpp
--- src/net/common/clientthread.cpp.orig
+++ src/net/common/clientthread.cpp
@@ -993,8 +993,12 @@ ClientThread::CreateContextSession()
 			newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v6()));
 		else
 			newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v4()));
+#if BOOST_VERSION < 106600
 		boost::asio::socket_base::non_blocking_io command(true);
 		newSock->io_control(command);
+#else
+		newSock->non_blocking(true);
+#endif
 		newSock->set_option(tcp::no_delay(true));
 		newSock->set_option(boost::asio::socket_base::keep_alive(true));
 
