]> git.sur5r.net Git - openldap/commitdiff
Fix no_threads build
authorKurt Zeilenga <kurt@openldap.org>
Sat, 30 Sep 2000 01:04:43 +0000 (01:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 30 Sep 2000 01:04:43 +0000 (01:04 +0000)
servers/slapd/back-bdb/init.c

index 2ef9ff4dd2fe09e02c291857e3cb710eef02b252..eec64e86e233da3b223775d734af4fb5b473f32d 100644 (file)
@@ -66,7 +66,9 @@ bdb_db_init( BackendDB *be )
        bdb->bi_dbenv_xflags = 0;
        bdb->bi_dbenv_mode = DEFAULT_MODE;
 
+#ifndef NO_THREADS
        bdb->bi_lock_detect = DB_LOCK_NORUN;
+#endif
 
        be->be_private = bdb;
        return 0;