Date: Sun, 4 Dec 2016 10:44:08 +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: r427767 - head/databases/postgis20/files Message-ID: <201612041044.uB4Ai8Y1049372@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Dec 4 10:44:08 2016 New Revision: 427767 URL: https://svnweb.freebsd.org/changeset/ports/427767 Log: - Fix build with PostgreSQL 9.5+ PR: 207314 Reported by: Vladyslav <vladka@webdevelop.pro> Added: head/databases/postgis20/files/ head/databases/postgis20/files/patch-postgis-lwgeom_accum.c (contents, props changed) Added: head/databases/postgis20/files/patch-postgis-lwgeom_accum.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/postgis20/files/patch-postgis-lwgeom_accum.c Sun Dec 4 10:44:08 2016 (r427767) @@ -0,0 +1,14 @@ +--- postgis/lwgeom_accum.c.orig 2012-02-27 22:08:12 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)) ++#if POSTGIS_PGSQL_VERSION >= 95 ++ aggcontext = ((AggState *) fcinfo->context)->aggcontexts; ++#else + aggcontext = ((AggState *) fcinfo->context)->aggcontext; ++#endif + #if POSTGIS_PGSQL_VERSION == 84 + + else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612041044.uB4Ai8Y1049372>