Commit 39f93be7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

use of dbEnvInit_mutex missing -DHAVE_BERKELEY_DB2

parent 2a6670db
......@@ -19,7 +19,9 @@ ldbm_back_init(
char *argv[ 4 ];
int i;
#ifdef HAVE_BERKELEY_DB2
extern pthread_mutex_t dbEnvInit_mutex;
#endif
/* allocate backend-specific stuff */
li = (struct ldbminfo *) ch_calloc( 1, sizeof(struct ldbminfo) );
......@@ -81,7 +83,9 @@ ldbm_back_init(
pthread_cond_init( &li->li_dbcache[i].dbc_cv,
pthread_condattr_default );
}
#ifdef HAVE_BERKELEY_DB2
pthread_mutex_init( &dbEnvInit_mutex, pthread_mutexattr_default );
#endif
be->be_private = li;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment