--- src/mapdev/v.in.dgn/main.c.orig Sat Jul 19 17:39:45 2003 +++ src/mapdev/v.in.dgn/main.c Sat Jul 19 21:53:57 2003 @@ -13,7 +13,7 @@ #include #include "gis.h" #include "Vect.h" -#include "dgnlibp.h" +#include "dgnlib.h" int main( int argc, char ** argv ) @@ -139,7 +139,12 @@ startcat = atoi ( startcat_opt->answer ); - hDGN = DGNOpen( dgn_opt->answer ); +/* Prototype for DGNOpen has changed: it takes now 2 arguments in the + * 1.1.9 version of gdal, the second one being an integer : + * 0 -> open read only + * !0 -> open read write + */ + hDGN = DGNOpen( dgn_opt->answer, 0 ); if( hDGN == NULL ) { sprintf(errmsg, "Not able to open dgn file <%s>\n", dgn_opt->answer) ;