*sp++ = c;
}
*sp = '\0';
+#if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 1)
status = dbase->open (dbase, db_file_name, NULL,
real_subtype, accessmask, modemask);
+#else /* DB_VERSION >= 4.1 */
+ status = dbase->open (dbase, NULL, db_file_name, NULL,
+ real_subtype,
+ accessmask /* | DB_AUTO_COMMIT */, modemask);
+#endif /* DB_VERSION < 4.1 */
if (status)
{
dbase->close (dbase, 0);