From owner-svn-ports-all@freebsd.org Sun Dec 4 10:44:13 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA80BC666DF; Sun, 4 Dec 2016 10:44:13 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9EC71515; Sun, 4 Dec 2016 10:44:13 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB4AiCg3049499; Sun, 4 Dec 2016 10:44:12 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB4AiCNq049498; Sun, 4 Dec 2016 10:44:12 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201612041044.uB4AiCNq049498@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 4 Dec 2016 10:44:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427768 - head/databases/postgis21/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 10:44:14 -0000 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 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; +