You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-p2p/eiskaltdcpp/files/eiskaltdcpp-2.2.10-miniupnp...

30 lines
1.1 KiB

From b88120830e974d843cbfec552b639fa72c64dcbd Mon Sep 17 00:00:00 2001
From: Pavel Vatagin <pavelvat@gmail.com>
Date: Fri, 5 Feb 2016 04:15:33 +0300
Subject: [PATCH] extra: fix #332
---
extra/upnpc.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/extra/upnpc.cpp b/extra/upnpc.cpp
index 40a011a..bbd7bbf 100644
--- a/extra/upnpc.cpp
+++ b/extra/upnpc.cpp
@@ -41,9 +41,13 @@ using namespace dcpp;
bool UPnPc::init()
{
- UPNPDev *devices = upnpDiscover(5000, SettingsManager::getInstance()->isDefault(SettingsManager::BIND_ADDRESS) ? 0 : SETTING(BIND_ADDRESS).c_str(), 0, 0
+ UPNPDev *devices = upnpDiscover(5000, SettingsManager::getInstance()->isDefault(SettingsManager::BIND_ADDRESS) ? 0 : SETTING(BIND_ADDRESS).c_str(), NULL, 0
#if (MINIUPNPC_API_VERSION >= 8 || defined(MINIUPNPC16))
- , 0, 0);
+ , 0
+#if (MINIUPNPC_API_VERSION >= 14)
+ , 2
+#endif
+ , NULL);
#else
);
#endif