diff options
author | cimer | 2016-02-29 21:06:24 +0100 |
---|---|---|
committer | cimer | 2016-02-29 21:06:24 +0100 |
commit | 8a348a868609e6973b387de3087c11b3bf1a5917 (patch) | |
tree | f27e24bdeb0a7bf3f526a83fcc0b2d4e65887712 /upnp-1.9.patch | |
download | aur-8a348a868609e6973b387de3087c11b3bf1a5917.tar.gz |
init
Diffstat (limited to 'upnp-1.9.patch')
-rw-r--r-- | upnp-1.9.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/upnp-1.9.patch b/upnp-1.9.patch new file mode 100644 index 000000000000..42e6cf18e8d0 --- /dev/null +++ b/upnp-1.9.patch @@ -0,0 +1,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; |