summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-12-16 12:15:26 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-12-16 12:15:56 -0500
commit88eb1c762bfa9a47000bf633cf083deaa84ce25d (patch)
treea2da0e17b6867d1842c1fe2a9a00367001972b64 /net-p2p/litecoind/files
parentnet-p2p/litecoin-qt: fix for API change in miniunpnc, bug #567080. (diff)
downloadgentoo-88eb1c762bfa9a47000bf633cf083deaa84ce25d.tar.gz
gentoo-88eb1c762bfa9a47000bf633cf083deaa84ce25d.tar.bz2
gentoo-88eb1c762bfa9a47000bf633cf083deaa84ce25d.zip
net-p2p/litecoind: fix for API change in miniunpnc, bug #567080.
Package-Manager: portage-2.2.24
Diffstat (limited to 'net-p2p/litecoind/files')
-rw-r--r--net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch b/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
new file mode 100644
index 00000000000..7315ea9d2a4
--- /dev/null
+++ b/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
@@ -0,0 +1,19 @@
+diff -Nuar litecoin-0.10.2.2/src/net.cpp litecoin-0.10.2.2-fix/src/net.cpp
+--- litecoin-0.10.2.2/src/net.cpp 2015-06-15 08:51:30.000000000 +0000
++++ litecoin-0.10.2.2-fix/src/net.cpp 2015-12-16 12:38:52.881533970 +0000
+@@ -1020,10 +1020,14 @@
+ #ifndef UPNPDISCOVER_SUCCESS
+ /* miniupnpc 1.5 */
+ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
+-#else
++#elif MINIUPNPC_API_VERSION < 14
+ /* miniupnpc 1.6 */
+ int error = 0;
+ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
++#else
++ /* miniupnpc 1.9.20150730 */
++ int error = 0;
++ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
+ #endif
+
+ struct UPNPUrls urls; \ No newline at end of file