[GRASS5] [bug #2543] (grass) patches to build on openbsd without tcl/tk
Radim Blazek
blazek at itc.it
Mon Jul 19 09:27:19 EDT 2004
Fixed.
Radim
On Sunday 18 July 2004 15:49, Request Tracker wrote:
> 2. also there were some assumptions about OGR which caused link errors
> --- lib/vector/Vlib/close.c.orig Sun Jul 18 22:46:32 2004
> +++ lib/vector/Vlib/close.c Sun Jul 18 22:46:59 2004
> @@ -61,8 +61,10 @@
> Vect_save_spatial_index ( Map );
> Vect_cidx_save ( Map );
>
> +#ifdef HAVE_OGR
> if ( Map->format == GV_FORMAT_OGR )
> V2_close_ogr ( Map );
> +#endif
> }
>
> if ( Map->level == 2 ) {
> --- lib/vector/Vlib/open.c.orig Sun Jul 18 22:47:19 2004
> +++ lib/vector/Vlib/open.c Sun Jul 18 22:47:53 2004
> @@ -211,6 +211,7 @@
> level = 1;
> }
> }
> +#ifdef HAVE_OGR
> /* Open OGR specific support files */
> if ( level == 2 && Map->format == GV_FORMAT_OGR ) {
> if ( V2_open_old_ogr ( Map ) < 0 ) {
> @@ -220,6 +221,7 @@
> level = 1;
> }
> }
> +#endif
> if (level_request == 2 && level < 2) {
> sprintf ( errmsg, "Cannot open old vector %s on level %d",
> Vect_get_fu ll_name(Map), level_request );
> fatal_error (ferror, errmsg);
More information about the grass-dev
mailing list