diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2016-12-04 18:44:08 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2016-12-04 18:44:08 +0800 |
commit | d28706b0f27b19195946d387375c56c9029fb4f6 (patch) | |
tree | 108e02db0e6200514fad24f68d22e75b385f07ab /databases/postgis20 | |
parent | 1c089f22df172cfc52be3c7f97ecec1dc25e3476 (diff) | |
download | freebsd-ports-gnome-d28706b0f27b19195946d387375c56c9029fb4f6.tar.gz freebsd-ports-gnome-d28706b0f27b19195946d387375c56c9029fb4f6.tar.zst freebsd-ports-gnome-d28706b0f27b19195946d387375c56c9029fb4f6.zip |
- Fix build with PostgreSQL 9.5+
PR: 207314
Reported by: Vladyslav <vladka@webdevelop.pro>
Diffstat (limited to 'databases/postgis20')
-rw-r--r-- | databases/postgis20/files/patch-postgis-lwgeom_accum.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/postgis20/files/patch-postgis-lwgeom_accum.c b/databases/postgis20/files/patch-postgis-lwgeom_accum.c new file mode 100644 index 000000000000..4d49da94543f --- /dev/null +++ b/databases/postgis20/files/patch-postgis-lwgeom_accum.c @@ -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)) |