From: Regina Obe Date: Sun, 14 Oct 2012 05:40:44 +0000 (+0000) Subject: #2046: fix 2.1 doesn't compile with postgresql 9.0 X-Git-Tag: 2.1.0beta2~539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a407867e914798620070bc46a31739959b2c80a;p=postgis #2046: fix 2.1 doesn't compile with postgresql 9.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@10428 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index adb1cfdde..640f6ec56 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -14146,8 +14146,13 @@ Datum RASTER_nMapAlgebra(PG_FUNCTION_ARGS) elog(NOTICE, "Function provided is VOLATILE. Unless required and for best performance, function should be IMMUTABLE or STABLE"); /* prep function call data */ - InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, InvalidOid, NULL, NULL); + #if POSTGIS_PGSQL_VERSION > 90 + InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, InvalidOid, NULL, NULL); + #else + InitFunctionCallInfoData(arg->callback.ufc_info, &(arg->callback.ufl_info), arg->callback.ufl_info.fn_nargs, NULL, NULL); + #endif memset(arg->callback.ufc_info.argnull, FALSE, arg->callback.ufl_info.fn_nargs); + /* userargs (7) */ if (!PG_ARGISNULL(7))