mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
#6003: Update to miniupnpc api 14 (slightly modified patch by infirit)
This commit is contained in:
parent
e89736fb17
commit
a90a473d48
1 changed files with 4 additions and 0 deletions
|
@ -88,7 +88,11 @@ tr_upnpDiscover (int msec)
|
|||
|
||||
#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
|
||||
int err = UPNPDISCOVER_SUCCESS;
|
||||
#if (MINIUPNPC_API_VERSION >= 14) /* adds ttl */
|
||||
ret = upnpDiscover (msec, NULL, NULL, 0, 0, 2, &err);
|
||||
#else
|
||||
ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
|
||||
#endif
|
||||
have_err = err != UPNPDISCOVER_SUCCESS;
|
||||
#else
|
||||
ret = upnpDiscover (msec, NULL, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue