fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / tr / transmission_3 / transmission-3.00-miniupnpc-2.2.8.patch
blob66de8f9bf510d9b1f6b4f9b4d3eb8cab489881d0
1 diff --git a/libtransmission/upnp.c b/libtransmission/upnp.c
2 index c9e248a379...c7b2580bcb 100644
3 --- a/libtransmission/upnp.c
4 +++ b/libtransmission/upnp.c
5 @@ -194,8 +194,13 @@
7 errno = 0;
9 +#if (MINIUPNPC_API_VERSION >= 18)
10 if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, handle->lanaddr,
11 + sizeof(handle->lanaddr), NULL, 0) == UPNP_IGD_VALID_CONNECTED)
12 +#else
13 + if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, handle->lanaddr,
14 sizeof(handle->lanaddr)) == UPNP_IGD_VALID_CONNECTED)
15 +#endif
17 tr_logAddNamedInfo(getKey(), _("Found Internet Gateway Device \"%s\""), handle->urls.controlURL);
18 tr_logAddNamedInfo(getKey(), _("Local Address is \"%s\""), handle->lanaddr);