+2002-09-13 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb_db2.c (krb5_db2_db_iterate_ext): Don't call bt_rseq if
+ HAVE_BT_RSEQ is undefined; instead, just return an error.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
dbret = (*db->seq)(db, &key, &contents,
backwards ? R_LAST : R_FIRST);
} else {
+#ifdef HAVE_BT_RSEQ
dbret = bt_rseq(db, &key, &contents, &cookie,
backwards ? R_LAST : R_FIRST);
+#else
+ (void)krb5_db2_db_unlock(context);
+ return KRB5_KDB_UK_RERROR; /* Not optimal, but close enough. */
+#endif
}
while (dbret == 0) {
contdata.data = contents.data;
dbret = (*db->seq)(db, &key, &contents,
backwards ? R_PREV : R_NEXT);
} else {
+#ifdef HAVE_BT_RSEQ
dbret = bt_rseq(db, &key, &contents, &cookie,
backwards ? R_PREV : R_NEXT);
+#else
+ (void)krb5_db2_db_unlock(context);
+ return KRB5_KDB_UK_RERROR; /* Not optimal, but close enough. */
+#endif
}
}
switch (dbret) {