1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

#6003: Update to miniupnpc api 14 (slightly modified patch by infirit)

This commit is contained in:
Mike Gelfand 2015-10-04 04:53:18 +00:00
parent e89736fb17
commit a90a473d48

View file

@ -88,7 +88,11 @@ tr_upnpDiscover (int msec)
#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */ #if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */
int err = UPNPDISCOVER_SUCCESS; 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); ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err);
#endif
have_err = err != UPNPDISCOVER_SUCCESS; have_err = err != UPNPDISCOVER_SUCCESS;
#else #else
ret = upnpDiscover (msec, NULL, NULL, 0); ret = upnpDiscover (msec, NULL, NULL, 0);