diff options
Diffstat (limited to 'games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch')
-rw-r--r-- | games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch b/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch deleted file mode 100644 index 377286220b11..000000000000 --- a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch +++ /dev/null @@ -1,28 +0,0 @@ -Index: common/i_net.cpp -=================================================================== ---- a/common/i_net.cpp (revision 5459) -+++ b/common/i_net.cpp (working copy) -@@ -151,7 +151,11 @@ - - Printf(PRINT_HIGH, "UPnP: Discovering router (max 1 unit supported)\n"); - -+#if MINIUPNPC_API_VERSION < 14 - devlist = upnpDiscover(sv_upnp_discovertimeout.asInt(), NULL, NULL, 0, 0, &res); -+#else -+ devlist = upnpDiscover(sv_upnp_discovertimeout.asInt(), NULL, NULL, 0, 0, 2, &res); -+#endif - - if (!devlist || res != UPNPDISCOVER_SUCCESS) - { -@@ -179,7 +183,11 @@ - // " desc: %s\n st: %s\n", - // dev->descURL, dev->st); - -+#if MINIUPNPC_API_VERSION < 16 - descXML = (char *)miniwget(dev->descURL, &descXMLsize, 0); -+#else -+ descXML = (char *)miniwget(dev->descURL, &descXMLsize, 0, &res); -+#endif - - if (descXML) - { |