* Modified to check the consistency of didname.db by
* Joe Clarke <marcus@marcuscom.com>
*
- * $Id: cnid_didname_verify.c,v 1.4 2001-12-10 07:34:39 jmarcus Exp $
+ * $Id: cnid_didname_verify.c,v 1.5 2001-12-10 21:04:46 jmarcus Exp $
*/
#ifdef HAVE_CONFIG_H
dbenv->set_errpfx(dbenv, progname);
}
+#ifdef DB_VERSION_MINOR > 1
if (nflag && (ret = dbenv->set_mutexlocks(dbenv, 0)) != 0) {
dbenv->err(dbenv, ret, "set_mutexlocks");
goto shutdown;
}
+#else /* DB_VERSION_MINOR < 1 */
+ if (nflag && (ret = db_env_set_mutexlocks(0)) != 0) {
+ dbenv->err(dbenv, ret, "db_env_set_mutexlocks");
+ goto shutdown;
+ }
+#endif /* DB_VERSION_MINOR */
/*
* Attach to an mpool if it exists, but if that fails, attach