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