git: bb1eec01459c - main - net-p2p/litecoin: fix build with miniupnpc 2.2.8

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Fri, 19 Jul 2024 15:33:38 UTC
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb1eec01459cd3ecf428e643288cdba3d4cbf5bc

commit bb1eec01459cd3ecf428e643288cdba3d4cbf5bc
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-07-19 15:33:31 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-07-19 15:33:31 +0000

    net-p2p/litecoin: fix build with miniupnpc 2.2.8
    
    PR: 280298
---
 net-p2p/litecoin/files/patch-src_net.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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) {