ports/devel/websocketpp/files/patch-test_endpoint_endpoint.cpp
Jan-Espen Oversand 6b6aa6dd2e devel/websocketpp: unbreak with boost >= 1.87 and take maintainership
Websocketpp 0.8.2 is not compatible with boost 1.87 or later without
the patches. Although the port is header-only, patches for example and
test .cpp files are also included, not only patches for headers. The
test target is added as well.

Co-authored-by: Hiroki Tagato <tagattie@FreeBSD.org>

PR:		286903
Reported by:	Jan-Espen Oversand <sigsegv@radiotube.org> (new maintainer)
2025-06-23 09:01:06 +09:00

23 lines
944 B
C++

--- test/endpoint/endpoint.cpp.orig 2020-04-19 18:25:17 UTC
+++ test/endpoint/endpoint.cpp
@@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE( initialize_server_asio_external
BOOST_AUTO_TEST_CASE( initialize_server_asio_external ) {
websocketpp::server<websocketpp::config::asio> s;
- boost::asio::io_service ios;
+ boost::asio::io_context ios;
s.init_asio(&ios);
}
@@ -141,8 +141,8 @@ BOOST_AUTO_TEST_CASE( listen_after_listen_failure ) {
server1.init_asio();
server2.init_asio();
- boost::asio::ip::tcp::endpoint ep1(boost::asio::ip::address::from_string("127.0.0.1"), 12345);
- boost::asio::ip::tcp::endpoint ep2(boost::asio::ip::address::from_string("127.0.0.1"), 23456);
+ boost::asio::ip::tcp::endpoint ep1(boost::asio::ip::make_address("127.0.0.1"), 12345);
+ boost::asio::ip::tcp::endpoint ep2(boost::asio::ip::make_address("127.0.0.1"), 23456);
server1.listen(ep1, ec);
BOOST_CHECK(!ec);