From: Gary Williams Date: Thu, 1 Apr 1999 14:50:34 +0000 (+0000) Subject: NT port X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~294 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6b47355f949a59e4e72b47903a535cfd9d0ed80;p=openldap NT port --- diff --git a/servers/slapd/back-ldbm/back-ldbm.h b/servers/slapd/back-ldbm/back-ldbm.h index 417027f3cc..7633cdb3b5 100644 --- a/servers/slapd/back-ldbm/back-ldbm.h +++ b/servers/slapd/back-ldbm/back-ldbm.h @@ -137,6 +137,7 @@ struct ldbminfo { struct dbcache li_dbcache[MAXDBCACHE]; ldap_pvt_thread_mutex_t li_dbcache_mutex; ldap_pvt_thread_cond_t li_dbcache_cv; + DB_ENV li_db_env; }; #include "proto-back-ldbm.h" diff --git a/servers/slapd/back-ldbm/backldbm.dsp b/servers/slapd/back-ldbm/backldbm.dsp index a7393c7c7a..a955b4bc3a 100644 --- a/servers/slapd/back-ldbm/backldbm.dsp +++ b/servers/slapd/back-ldbm/backldbm.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\\" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\\" /I "..\..\..\include" /I "..\..\..\libraries\regex" /I "..\..\..\..\db-2.7.3\build_win32" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo diff --git a/servers/slapd/back-ldbm/startup.c b/servers/slapd/back-ldbm/startup.c index c579c207c3..d44410cb24 100644 --- a/servers/slapd/back-ldbm/startup.c +++ b/servers/slapd/back-ldbm/startup.c @@ -14,6 +14,16 @@ #include "db.h" +#ifdef HAVE_BERKELEY_DB2 + +void +ldbm_db_errcall( const char *prefix, const char *message ) +{ + Debug( LDAP_DEBUG_ANY, "ldbm_db_errcall(): %s %s", prefix, message, 0 ); +} + +#endif /* HAVE_BERKELEY_DB2 */ + void ldbm_back_startup( @@ -83,15 +93,3 @@ ldbm_back_shutdown( (void) db_appexit( &li->li_db_env ); #endif } - - -#ifdef HAVE_BERKELEY_DB2 - -void -ldbm_db_errcall( const char *prefix, const char *message ) -{ - Debug( LDAP_DEBUG_ANY, "ldbm_db_errcall(): %s %s", prefix, message, 0 ); -} - -#endif /* HAVE_BERKELEY_DB2 */ -