Browse Source

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 years ago
parent
commit
07026b9aad
1 changed files with 2 additions and 1 deletions
  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 */