diff --git a/src/mapport.cpp b/src/mapport.cpp index 62a3d73ec2..ecdbcdff12 100644 --- a/src/mapport.cpp +++ b/src/mapport.cpp @@ -167,8 +167,11 @@ static bool ProcessUpnp() struct UPNPUrls urls; struct IGDdatas data; int r; - +#if MINIUPNPC_API_VERSION <= 17 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 (fDiscover) {