diff options
Diffstat (limited to 'games/frogatto/frogatto-boost-1.70.patch')
-rw-r--r-- | games/frogatto/frogatto-boost-1.70.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/games/frogatto/frogatto-boost-1.70.patch b/games/frogatto/frogatto-boost-1.70.patch new file mode 100644 index 0000000000000..3a47530a4da65 --- /dev/null +++ b/games/frogatto/frogatto-boost-1.70.patch @@ -0,0 +1,37 @@ +rc/http_server.cpp:34:46: error: no member named 'get_io_service' in + 'boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::executor>' + socket_ptr socket(new tcp::socket(acceptor_.get_io_service())); + ~~~~~~~~~ ^ +src/server.cpp:40:47: error: no member named 'get_io_service' in + 'boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::executor>' + socket_ptr socket(new tcp::socket(acceptor_.get_io_service())); + ~~~~~~~~~ ^ + +--- src/http_server.cpp.orig 2012-12-08 22:36:13 UTC ++++ src/http_server.cpp +@@ -31,7 +31,11 @@ web_server::web_server(boost::asio::io_service& io_ser + + void web_server::start_accept() + { ++#if BOOST_VERSION < 107000 + socket_ptr socket(new tcp::socket(acceptor_.get_io_service())); ++#else ++ socket_ptr socket(new tcp::socket(acceptor_.get_executor())); ++#endif + acceptor_.async_accept(*socket, boost::bind(&web_server::handle_accept, this, socket, boost::asio::placeholders::error)); + + } +--- src/server.cpp.orig 2012-12-08 22:36:13 UTC ++++ src/server.cpp +@@ -37,7 +37,11 @@ class server (public) + private: + void start_accept() + { ++#if BOOST_VERSION < 107000 + socket_ptr socket(new tcp::socket(acceptor_.get_io_service())); ++#else ++ socket_ptr socket(new tcp::socket(acceptor_.get_executor())); ++#endif + acceptor_.async_accept(*socket, boost::bind(&server::handle_accept, this, socket, boost::asio::placeholders::error)); + } + |