freebsd-ports/databases/libgda2/files/patch-providers_mdb_gda-mdb-provider.c
Jeremy Messenger cb1537c096 Fix the build with WITH_MDB=yes or have databases/mdbtools installed.
PR:		ports/107511
Submitted by:	Denis Eremenko <moonshade@pnhz.kz>
2007-01-06 01:21:55 +00:00

11 lines
462 B
C

--- providers/mdb/gda-mdb-provider.c.orig Thu Jan 4 17:14:00 2007
+++ providers/mdb/gda-mdb-provider.c Thu Jan 4 17:14:06 2007
@@ -209,7 +209,7 @@
mdb_cnc = g_new0 (GdaMdbConnection, 1);
mdb_cnc->cnc = cnc;
mdb_cnc->server_version = NULL;
- mdb_cnc->mdb = mdb_open (filename, MDB_WRITABLE);
+ mdb_cnc->mdb = mdb_open (filename);
if (!mdb_cnc->mdb) {
gda_connection_add_error_string (cnc, _("Could not open file %s"), filename);
g_free (mdb_cnc);