diff --git a/servers/slapd/back-ldbm/back-ldbm.h b/servers/slapd/back-ldbm/back-ldbm.h index 7633cdb3b5..0f6623ce57 100644 --- a/servers/slapd/back-ldbm/back-ldbm.h +++ b/servers/slapd/back-ldbm/back-ldbm.h @@ -137,7 +137,9 @@ struct ldbminfo { struct dbcache li_dbcache[MAXDBCACHE]; ldap_pvt_thread_mutex_t li_dbcache_mutex; ldap_pvt_thread_cond_t li_dbcache_cv; +#ifdef HAVE_BERKELEY_DB2 DB_ENV li_db_env; +#endif }; #include "proto-back-ldbm.h"