[Bug 280298] net-p2p/transmission-components: build error after updating net/miniupnpc to 2.2.8

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Jul 2024 15:31:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280298

Vladimir Druzenko <vvd@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vvd@FreeBSD.org

--- Comment #7 from Vladimir Druzenko <vvd@FreeBSD.org> ---
Smaller patch:
--- libtransmission/port-forwarding-upnp.cc.orig        2024-05-29 01:38:35 UTC
+++ libtransmission/port-forwarding-upnp.cc
@@ -275,8 +275,11 @@ tr_port_forwarding_state tr_upnpPulse(tr_upnp* handle,

         FreeUPNPUrls(&handle->urls);
         auto lanaddr = std::array<char, TR_ADDRSTRLEN>{};
-        if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data,
std::data(lanaddr), std::size(lanaddr) - 1) ==
-            UPNP_IGD_VALID_CONNECTED)
+        if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data,
std::data(lanaddr), std::size(lanaddr) - 1
+#if (MINIUPNPC_API_VERSION >= 18)
+            , nullptr, 0
+#endif
+            ) == UPNP_IGD_VALID_CONNECTED)
         {
             tr_logAddInfo(fmt::format(_("Found Internet Gateway Device
'{url}'"), fmt::arg("url", handle->urls.controlURL)));
             tr_logAddInfo(fmt::format(_("Local Address is '{address}'"),
fmt::arg("address", lanaddr.data())));

-- 
You are receiving this mail because:
You are the assignee for the bug.