summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2015-10-02 09:44:43 +0200
committerLars Wendler <polynomial-c@gentoo.org>2015-10-02 09:50:56 +0200
commit07e960f32ebc7de1ef0604b8242a77918f9362c8 (patch)
tree9aee67f13701ff608cd069b5ae11c2172c35ed90 /games-strategy/0ad/files
parentnet-libs/libmicrohttpd: version bump to 0.9.44 (diff)
downloadgentoo-07e960f32ebc7de1ef0604b8242a77918f9362c8.tar.gz
gentoo-07e960f32ebc7de1ef0604b8242a77918f9362c8.tar.bz2
gentoo-07e960f32ebc7de1ef0604b8242a77918f9362c8.zip
games-strategy/0ad: Added an upstream patch for new miniupnpc API.
Package-Manager: portage-2.2.22 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-strategy/0ad/files')
-rw-r--r--games-strategy/0ad/files/0ad-0.0.18_alpha-miniupnpc14.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-strategy/0ad/files/0ad-0.0.18_alpha-miniupnpc14.patch b/games-strategy/0ad/files/0ad-0.0.18_alpha-miniupnpc14.patch
new file mode 100644
index 000000000000..ff46685cd3bf
--- /dev/null
+++ b/games-strategy/0ad/files/0ad-0.0.18_alpha-miniupnpc14.patch
@@ -0,0 +1,14 @@
+Index: ps/trunk/source/network/NetServer.cpp
+===================================================================
+--- ps/trunk/source/network/NetServer.cpp (revision 17090)
++++ ps/trunk/source/network/NetServer.cpp (revision 17091)
+@@ -237,5 +237,9 @@
+ }
+ // No cached URL, or it did not respond. Try getting a valid UPnP device for 10 seconds.
++#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION >= 14
++ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 2, 0)) != NULL)
++#else
+ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)
++#endif
+ {
+ ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));