mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Merge bitcoin/bitcoin#30319: [26.x] upnp: fix build with miniupnpc 2.2.8
10413ac46c
doc: add 30283 cherry-pick to rel notes (fanquake)391ce775f4
upnp: add compatibility for miniupnpc 2.2.8 (Cory Fields) Pull request description: Backports https://github.com/bitcoin/bitcoin/pull/30283 to the 26.x branch. ACKs for top commit: edilmedeiros: ACK10413ac46c
theuni: ACK10413ac46c
Tree-SHA512: 4a0f4eceefd5bbf9c97d19c4890b85963d56449856a56e6fe24161d3d6f37332de719da342d6c00ee67f2cd9434d849809a3cdc51719dc93219ec218c35a9f97
This commit is contained in:
commit
6bbfdcfb6d
2 changed files with 6 additions and 1 deletions
|
@ -61,6 +61,7 @@ Notable changes
|
||||||
- #29747: depends: fix mingw-w64 Qt DEBUG=1 build
|
- #29747: depends: fix mingw-w64 Qt DEBUG=1 build
|
||||||
- #29985: depends: Fix build of Qt for 32-bit platforms with recent glibc
|
- #29985: depends: Fix build of Qt for 32-bit platforms with recent glibc
|
||||||
- #30151: depends: Fetch miniupnpc sources from an alternative website
|
- #30151: depends: Fetch miniupnpc sources from an alternative website
|
||||||
|
- #30283: upnp: fix build with miniupnpc 2.2.8
|
||||||
|
|
||||||
### Misc
|
### Misc
|
||||||
|
|
||||||
|
@ -76,6 +77,7 @@ Thanks to everyone who directly contributed to this release:
|
||||||
|
|
||||||
- Antoine Poinsot
|
- Antoine Poinsot
|
||||||
- Ava Chow
|
- Ava Chow
|
||||||
|
- Cory Fields
|
||||||
- dergoegge
|
- dergoegge
|
||||||
- fanquake
|
- fanquake
|
||||||
- glozow
|
- glozow
|
||||||
|
|
|
@ -163,8 +163,11 @@ static bool ProcessUpnp()
|
||||||
struct UPNPUrls urls;
|
struct UPNPUrls urls;
|
||||||
struct IGDdatas data;
|
struct IGDdatas data;
|
||||||
int r;
|
int r;
|
||||||
|
#if MINIUPNPC_API_VERSION <= 17
|
||||||
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
|
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
|
||||||
|
#else
|
||||||
|
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), nullptr, 0);
|
||||||
|
#endif
|
||||||
if (r == 1)
|
if (r == 1)
|
||||||
{
|
{
|
||||||
if (fDiscover) {
|
if (fDiscover) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue