aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2024-07-19 15:58:06 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2024-07-19 15:58:06 +0000
commit8752173ea61388bdfe12b38b300ff14569603634 (patch)
treeb5ce7f630c20a6aba9fccaa5bcc72158c849d96e
parent2f155123ccf79e5ec2ad1dbd7d70ca465334524b (diff)
downloadports-8752173ea61388bdfe12b38b300ff14569603634.tar.gz
ports-8752173ea61388bdfe12b38b300ff14569603634.zip
net-p2p/retroshare: fix build with miniupnpc 2.2.8
PR: 280298
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare_src_upnp_upnphandler_miniupnp.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_upnp_upnphandler_miniupnp.cc b/net-p2p/retroshare/files/patch-libretroshare_src_upnp_upnphandler_miniupnp.cc
new file mode 100644
index 000000000000..ea4cc7beeea9
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare_src_upnp_upnphandler_miniupnp.cc
@@ -0,0 +1,18 @@
+--- libretroshare/src/upnp/upnphandler_miniupnp.cc.orig 2018-03-13 19:25:38 UTC
++++ libretroshare/src/upnp/upnphandler_miniupnp.cc
+@@ -116,9 +116,15 @@ bool upnphandler::initUPnPState()
+ device->descURL, device->st);
+ }
+ putchar('\n');
++#if MINIUPNPC_API_VERSION >= 18
+ if(UPNP_GetValidIGD(upcd->devlist, &(upcd->urls),
+ &(upcd->data), upcd->lanaddr,
++ sizeof(upcd->lanaddr), NULL, 0))
++#else
++ if(UPNP_GetValidIGD(upcd->devlist, &(upcd->urls),
++ &(upcd->data), upcd->lanaddr,
+ sizeof(upcd->lanaddr)))
++#endif//>=18
+ {
+ printf("Found valid IGD : %s\n",
+ upcd->urls.controlURL);