<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre class="message">Hello,

to build with multiple versions of libminiupnpc-dev,

replace 

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

by :

#if defined(<span class="blob-code-inner">MINIUPNPC_API_VERSION) && (</span><span class="blob-code-inner">MINIUPNPC_API_VERSION >= 14)
</span>  miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0, 0, 2, &result); /* use default TTL of 2 */
#elif defined(<span class="blob-code-inner">MINIUPNPC_API_VERSION) && (</span><span class="blob-code-inner">MINIUPNPC_API_VERSION >= 8)</span>
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0, 0, &result);
#elif defined(<span class="blob-code-inner">MINIUPNPC_API_VERSION) && (</span><span class="blob-code-inner">MINIUPNPC_API_VERSION >= 3)</span>
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL, 0);
#else
  miniupnpc_dev = upnpDiscover(3000, NULL, NULL);
#endif



regards,

Thomas Bernard

</pre>
  </body>
</html>