]> granicus.if.org Git - postgis/commitdiff
fix for #940 -- can't compile PostGIS 2.0 against PostgreSQL 9.1 beta 1
authorRegina Obe <lr@pcorp.us>
Thu, 12 May 2011 17:39:39 +0000 (17:39 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 12 May 2011 17:39:39 +0000 (17:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7135 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_accum.c

index 9e7536993b867867e41eb8f694ef8b0a4c748e00..701cca544ab0b43579750fde0d8d78f4e06156a4 100644 (file)
@@ -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;