Hello,

to fix the compilation of 

  miniupnpc_dev = upnpDiscover(1000, NULL, NULL, 0, 0, &error);

with newer version of libminiupnpc-dev, one should :

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



regards

Reply via email to