/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 1998-2001 Net Boolean Incorporated.
* All rights reserved.
#endif
static void
+#if DB_VERSION_X < 0x040300
ldbm_db_errcall( const char *prefix, char *message )
+#else
+ldbm_db_errcall( const DB_ENV *env, const char *prefix, char *message )
+#endif
{
#ifdef LDAP_SYSLOG
syslog( LOG_INFO, "ldbm: %s %s", prefix, message );
{
char *version;
+#ifdef HAVE_EBCDIC
+ char v2[1024];
+#endif
int major, minor, patch;
version = db_version( &major, &minor, &patch );
+#ifdef HAVE_EBCDIC
+ strcpy( v2, version );
+ __etoa( v2 );
+ version = v2;
+#endif
if( major != DB_VERSION_MAJOR ||
minor < DB_VERSION_MINOR )