]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
use of dbEnvInit_mutex missing -DHAVE_BERKELEY_DB2 OPENLDAP_REL_ENG_1_2_BETA
authorKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 19:53:50 +0000 (19:53 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 19:53:50 +0000 (19:53 +0000)
servers/slapd/back-ldbm/init.c

index cd5556e87185bec2217a25a270b176dccd229ad6..eccc6d2266ec3ff4e65647457c96f5995ec3e04c 100644 (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;
 }