From: Regina Obe Date: Thu, 12 May 2011 17:39:39 +0000 (+0000) Subject: fix for #940 -- can't compile PostGIS 2.0 against PostgreSQL 9.1 beta 1 X-Git-Tag: 2.0.0alpha1~1673 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=656b301c1ba07f85f247c968cc2e86e5ce3e1112;p=postgis 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 --- 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;