svn commit: r427768 - head/databases/postgis21/files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Dec 4 10:44:14 UTC 2016


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 at 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;
+ 


More information about the svn-ports-all mailing list