Date: Sun, 4 Dec 2016 10:44:12 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427768 - head/databases/postgis21/files Message-ID: <201612041044.uB4AiCNq049498@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Dec 4 10:44:12 2016 New Revision: 427768 URL: https://svnweb.freebsd.org/changeset/ports/427768 Log: - Fix build with PostgreSQL 9.5+ PR: 207314 Reported by: Vladyslav <vladka@webdevelop.pro> Approved by: maintainer (implicit) Added: head/databases/postgis21/files/ head/databases/postgis21/files/patch-postgis-lwgeom_accum.c (contents, props changed) Added: head/databases/postgis21/files/patch-postgis-lwgeom_accum.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/postgis21/files/patch-postgis-lwgeom_accum.c Sun Dec 4 10:44:12 2016 (r427768) @@ -0,0 +1,15 @@ +--- postgis/lwgeom_accum.c.orig 2014-12-01 08:47:21 UTC ++++ postgis/lwgeom_accum.c +@@ -106,7 +106,11 @@ pgis_geometry_accum_transfn(PG_FUNCTION_ + errmsg("could not determine input data type"))); + + if (fcinfo->context && IsA(fcinfo->context, AggState)) +- aggcontext = ((AggState *) fcinfo->context)->aggcontext; ++#if POSTGIS_PGSQL_VERSION >= 95 ++ aggcontext = ((AggState *) fcinfo->context)->aggcontexts; ++#else ++ aggcontext = ((AggState *) fcinfo->context)->aggcontext; ++#endif + else if (fcinfo->context && IsA(fcinfo->context, WindowAggState)) + aggcontext = ((WindowAggState *) fcinfo->context)->aggcontext; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612041044.uB4AiCNq049498>