use of dbEnvInit_mutex missing -DHAVE_BERKELEY_DB2

This commit is contained in:
Kurt Zeilenga 1999-01-25 19:53:50 +00:00
parent 2a6670dbd4
commit 39f93be77b

View file

@ -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;
}