Date: Wed, 14 Oct 2015 18:38:51 +0000 (UTC) From: Dirk Meyer <dinoex@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399287 - in head/games/megaglest: . files Message-ID: <201510141838.t9EIcpH9056407@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dinoex Date: Wed Oct 14 18:38:51 2015 New Revision: 399287 URL: https://svnweb.freebsd.org/changeset/ports/399287 Log: - fix API for miniupnpc-1.9.20151008 Added: head/games/megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp (contents, props changed) Modified: head/games/megaglest/Makefile Modified: head/games/megaglest/Makefile ============================================================================== --- head/games/megaglest/Makefile Wed Oct 14 18:16:10 2015 (r399286) +++ head/games/megaglest/Makefile Wed Oct 14 18:38:51 2015 (r399287) @@ -3,7 +3,7 @@ PORTNAME= megaglest PORTVERSION= 3.9.0.4 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_3.9.0/ DISTNAME= ${PORTNAME}-source-${PORTVERSION} Added: head/games/megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp Wed Oct 14 18:38:51 2015 (r399287) @@ -0,0 +1,14 @@ +--- source/shared_lib/sources/platform/posix/socket.cpp.orig 2015-10-14 18:18:16 UTC ++++ source/shared_lib/sources/platform/posix/socket.cpp +@@ -2554,7 +2554,11 @@ int UPNP_Tools::upnp_init(void *param) { + int upnp_error = 0; + + #ifndef MINIUPNPC_VERSION_PRE1_6 ++#if MINIUPNPC_API_VERSION >= 14 ++ devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, 2, &upnp_error); ++#else + devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, &upnp_error); ++#endif + + if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"UPnP discover returned upnp_error = %d.\n",upnp_error); + if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP discover returned upnp_error = %d.\n",upnp_error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510141838.t9EIcpH9056407>