mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
use of dbEnvInit_mutex missing -DHAVE_BERKELEY_DB2
This commit is contained in:
parent
2a6670dbd4
commit
39f93be77b
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue