diff options
Diffstat (limited to 'emulators/flycast')
-rw-r--r-- | emulators/flycast/Makefile | 2 | ||||
-rw-r--r-- | emulators/flycast/files/patch-core_network_dcnet.cpp | 38 |
2 files changed, 39 insertions, 1 deletions
diff --git a/emulators/flycast/Makefile b/emulators/flycast/Makefile index c4a1f271ab9e..770d580c03ca 100644 --- a/emulators/flycast/Makefile +++ b/emulators/flycast/Makefile @@ -1,7 +1,7 @@ PORTNAME= flycast DISTVERSIONPREFIX= v DISTVERSION= 2.5 -PORTREVISION= 2 +PORTREVISION= 5 CATEGORIES= emulators MAINTAINER= bsdcode@disroot.org diff --git a/emulators/flycast/files/patch-core_network_dcnet.cpp b/emulators/flycast/files/patch-core_network_dcnet.cpp new file mode 100644 index 000000000000..cf7c76d929cf --- /dev/null +++ b/emulators/flycast/files/patch-core_network_dcnet.cpp @@ -0,0 +1,38 @@ +--- core/network/dcnet.cpp.orig 2025-07-18 15:30:48 UTC ++++ core/network/dcnet.cpp +@@ -222,7 +222,7 @@ class EthSocket (private) + } + + private: +- using iterator = asio::buffers_iterator<asio::const_buffers_1>; ++ using iterator = asio::buffers_iterator<asio::const_buffer>; + + std::pair<iterator, bool> + static packetMatcher(iterator begin, iterator end) +@@ -502,7 +502,7 @@ class AccessPointFinder (private) + { + std::error_code e; + socket.close(e); +- timer.cancel(e); ++ timer.cancel(); + if (ec) { + handler(ec, {}, {}); + } +@@ -584,7 +584,7 @@ class DCNetThread (public) + { + if (io_context == nullptr || pppSocket == nullptr) + return; +- io_context->post([this, v]() { ++ asio::post([this, v]() { + pppSocket->send(v); + }); + } +@@ -593,7 +593,7 @@ class DCNetThread (public) + if (io_context != nullptr && ethSocket != nullptr) + { + std::vector<u8> vbuf(frame, frame + len); +- io_context->post([this, vbuf]() { ++ asio::post([this, vbuf]() { + ethSocket->send(vbuf.data(), vbuf.size()); + }); + } |