aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2024-07-19 15:46:04 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2024-07-19 15:46:04 +0000
commit658883b83bbeaa49b6f937b3acdf2a26a0a41145 (patch)
treeb343a76ff331281e946254b71130060cc94c4268
parentbb1eec01459cd3ecf428e643288cdba3d4cbf5bc (diff)
downloadports-658883b83bbeaa49b6f937b3acdf2a26a0a41145.tar.gz
ports-658883b83bbeaa49b6f937b3acdf2a26a0a41145.zip
net-p2p/namecoin: fix build with miniupnpc 2.2.8
PR: 280298
-rw-r--r--net-p2p/namecoin/files/patch-src_mapport.cpp14
1 files changed, 14 insertions, 0 deletions
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) {