[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Heimdal-0.6 compile problem
See attached.
-- Luke
Index: ndbm_wrap.c
===================================================================
RCS file: /home/project/cvs/heimdal/lib/roken/ndbm_wrap.c,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -r1.1.1.1 -r1.3
--- ndbm_wrap.c 2002/08/12 01:08:42 1.1.1.1
+++ ndbm_wrap.c 2003/08/23 08:42:39 1.3
@@ -165,7 +165,12 @@
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;