浏览代码

vlib: fix compilation issue (no pg support)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58362 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
07026b9aad
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/vector/Vlib/open.c

+ 2 - 1
lib/vector/Vlib/open.c

@@ -320,10 +320,11 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset,
         
         /* open topo */
         ret = -1;
+#ifdef HAVE_POSTGRES
         if (Map->format == GV_FORMAT_POSTGIS)
             /* try to read full-topology for PostGIS links */
           ret = Vect__open_topo_pg(Map, head_only, update);
-        
+#endif        
         if (ret != 0) {
             /* read topology for native format
                read pseudo-topology for OGR/PostGIS links */