svn commit: r427767 - head/databases/postgis20/files

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


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 at 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))


More information about the svn-ports-head mailing list