summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/ndbm_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/ndbm_wrap.c')
-rw-r--r--crypto/heimdal/lib/roken/ndbm_wrap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/heimdal/lib/roken/ndbm_wrap.c b/crypto/heimdal/lib/roken/ndbm_wrap.c
index 2c24cd5..0a1ab92 100644
--- a/crypto/heimdal/lib/roken/ndbm_wrap.c
+++ b/crypto/heimdal/lib/roken/ndbm_wrap.c
@@ -33,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: ndbm_wrap.c,v 1.1 2002/04/30 16:37:08 joda Exp $");
+RCSID("$Id: ndbm_wrap.c,v 1.1.8.1 2003/08/29 17:00:34 lha Exp $");
#endif
#include "ndbm_wrap.h"
@@ -165,7 +165,12 @@ dbm_open (const char *file, int flags, mode_t mode)
free(fn);
return NULL;
}
+
+#if (DB_VERSION_MAJOR > 3) && (DB_VERSION_MINOR > 0)
+ if(db->open(db, NULL, fn, NULL, DB_BTREE, myflags, mode) != 0) {
+#else
if(db->open(db, fn, NULL, DB_BTREE, myflags, mode) != 0) {
+#endif
free(fn);
db->close(db, 0);
return NULL;
OpenPOWER on IntegriCloud