--- eiskaltdcpp-2.2.10/extra/upnpc.cpp.0000 2015-04-20 05:57:16.000000000 +0800 +++ eiskaltdcpp-2.2.10/extra/upnpc.cpp 2015-10-19 09:42:46.055435265 +0800 @@ -42,7 +42,9 @@ bool UPnPc::init() { UPNPDev *devices = upnpDiscover(5000, SettingsManager::getInstance()->isDefault(SettingsManager::BIND_ADDRESS) ? 0 : SETTING(BIND_ADDRESS).c_str(), 0, 0 -#if (MINIUPNPC_API_VERSION == 8 || defined(MINIUPNPC16)) +#if (MINIUPNPC_API_VERSION >= 14) + , 0, 2, 0); +#elif (MINIUPNPC_API_VERSION == 8) , 0, 0); #else ); @@ -64,7 +66,7 @@ return UPNP_AddPortMapping(urls.controlURL, data.first.servicetype, port_.c_str(), port_.c_str(), Util::getLocalIp().c_str(), description.c_str(), protocols[protocol], NULL -#if (MINIUPNPC_API_VERSION == 8 || defined(MINIUPNPC16)) +#if (MINIUPNPC_API_VERSION >= 8) , 0) == UPNPCOMMAND_SUCCESS; #else ) == UPNPCOMMAND_SUCCESS;