From: jmarcus Date: Mon, 10 Dec 2001 21:04:46 +0000 (+0000) Subject: Fix compilation with db3 3.1.17. X-Git-Tag: point-backport-1-5-1~49 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d6a00ccf5e7f2fda91b939e591fabf22c92b5fb;p=netatalk.git Fix compilation with db3 3.1.17. --- diff --git a/bin/cnid/cnid_didname_verify.c b/bin/cnid/cnid_didname_verify.c index 57424062..8ecca07c 100644 --- a/bin/cnid/cnid_didname_verify.c +++ b/bin/cnid/cnid_didname_verify.c @@ -7,7 +7,7 @@ * Modified to check the consistency of didname.db by * Joe Clarke * - * $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 @@ -136,10 +136,17 @@ char *argv[]; 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