diff --git a/net-p2p/namecoin/files/patch-src_mapport.cpp b/net-p2p/namecoin/files/patch-src_mapport.cpp new file mode 100644 index 000000000000..7dbe49316e33 --- /dev/null +++ b/net-p2p/namecoin/files/patch-src_mapport.cpp @@ -0,0 +1,14 @@ +--- src/mapport.cpp.orig 2022-11-21 07:35:21 UTC ++++ src/mapport.cpp +@@ -169,7 +169,11 @@ static bool ProcessUpnp() + 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) {