mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
net-p2p/litecoin: fix build with miniupnpc 2.2.8
PR: 280298
This commit is contained in:
parent
49c08288de
commit
bb1eec0145
1 changed files with 14 additions and 0 deletions
14
net-p2p/litecoin/files/patch-src_net.cpp
Normal file
14
net-p2p/litecoin/files/patch-src_net.cpp
Normal file
|
@ -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) {
|
Loading…
Add table
Reference in a new issue