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
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)
13 + if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, handle->lanaddr,
14 sizeof(handle->lanaddr)) == UPNP_IGD_VALID_CONNECTED)
17 tr_logAddNamedInfo(getKey(), _("Found Internet Gateway Device \"%s\""), handle->urls.controlURL);
18 tr_logAddNamedInfo(getKey(), _("Local Address is \"%s\""), handle->lanaddr);