Bug#889059: FTBFS with 2.0.20171212

miniupnp miniupnp at free.fr
Fri Feb 2 16:03:38 UTC 2018


Hello,

to build with multiple versions of libminiupnpc-dev,

replace 

 devlist = upnpDiscover(3000, NULL, NULL, 0, 0, &result);

by :

#if defined(MINIUPNPC_API_VERSION) && (MINIUPNPC_API_VERSION >= 14)   miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0, 0, 2, &result); /* use default TTL of 2 */
#elif defined(MINIUPNPC_API_VERSION) && (MINIUPNPC_API_VERSION >= 8)
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0, 0, &result);
#elif defined(MINIUPNPC_API_VERSION) && (MINIUPNPC_API_VERSION >= 3)
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0);
#else
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL);
#endif



regards,

Thomas Bernard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20180202/c53a826b/attachment.html>


More information about the Pkg-games-devel mailing list