git: 658883b83bbe - main - net-p2p/namecoin: fix build with miniupnpc 2.2.8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jul 2024 15:46:15 UTC
The branch main has been updated by dinoex: URL: https://cgit.FreeBSD.org/ports/commit/?id=658883b83bbeaa49b6f937b3acdf2a26a0a41145 commit 658883b83bbeaa49b6f937b3acdf2a26a0a41145 Author: Dirk Meyer <dinoex@FreeBSD.org> AuthorDate: 2024-07-19 15:46:04 +0000 Commit: Dirk Meyer <dinoex@FreeBSD.org> CommitDate: 2024-07-19 15:46:04 +0000 net-p2p/namecoin: fix build with miniupnpc 2.2.8 PR: 280298 --- net-p2p/namecoin/files/patch-src_mapport.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) {