summaryrefslogtreecommitdiff
path: root/pcr/litecoin-qt/upnp-1.9.patch
blob: 42e6cf18e8d0e4c19142e13fefd209ece9f117fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -Naur a/src/net.cpp b/src/net.cpp
--- a/src/net.cpp	2015-06-15 10:51:30.000000000 +0200
+++ b/src/net.cpp	2015-10-03 16:15:10.441886309 +0200
@@ -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;