diff --git a/net-p2p/litecoin/files/patch-src_net.cpp b/net-p2p/litecoin/files/patch-src_net.cpp new file mode 100644 index 000000000000..3c99a4ae8af2 --- /dev/null +++ b/net-p2p/litecoin/files/patch-src_net.cpp @@ -0,0 +1,14 @@ +--- src/net.cpp.orig 2024-03-28 17:05:26 UTC ++++ src/net.cpp +@@ -1637,7 +1637,11 @@ static void ThreadMapPort() + struct IGDdatas data; + int r; + ++#if MINIUPNPC_API_VERSION >= 18 ++ r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), NULL, 0); ++#else + r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr)); ++#endif + if (r == 1) + { + if (fDiscover) {