From 656b301c1ba07f85f247c968cc2e86e5ce3e1112 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Thu, 12 May 2011 17:39:39 +0000 Subject: [PATCH] fix for #940 -- can't compile PostGIS 2.0 against PostgreSQL 9.1 beta 1 git-svn-id: http://svn.osgeo.org/postgis/trunk@7135 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_accum.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index 9e7536993..701cca544 100644 --- a/postgis/lwgeom_accum.c +++ b/postgis/lwgeom_accum.c @@ -303,7 +303,11 @@ PGISDirectFunctionCall1(PGFunction func, Datum arg1) FunctionCallInfoData fcinfo; Datum result; - InitFunctionCallInfoData(fcinfo, NULL, 1, NULL, NULL); +#if POSTGIS_PGSQL_VERSION > 90 + InitFunctionCallInfoData(fcinfo, NULL, 1, InvalidOid, NULL, NULL); +#else + InitFunctionCallInfoData(fcinfo, NULL, 1, NULL, NULL); +#endif fcinfo.arg[0] = arg1; fcinfo.argnull[0] = false; -- 2.50.1