]> arthur.barton.de Git - netatalk.git/commitdiff
Fix compilation with db3 3.1.17.
authorjmarcus <jmarcus>
Mon, 10 Dec 2001 21:04:46 +0000 (21:04 +0000)
committerjmarcus <jmarcus>
Mon, 10 Dec 2001 21:04:46 +0000 (21:04 +0000)
bin/cnid/cnid_didname_verify.c

index 57424062c283f35e104dadf25c7b0ed8b56d0f8b..8ecca07c65a176ce68480e5c1164113445ee1cd7 100644 (file)
@@ -7,7 +7,7 @@
  * 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
@@ -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