SL> I have no way of testing this patch myself. Could someone with
SL> appropriate access to Berkeley DB 2 please check to be sure this
SL> doesn't break older systems? Thanks.
> In sendmail, we did the following:
SL> 'Nuf said.
It was a simple fix so I'll say some more and save Paul some time (CC'ed to
xemacs-patches):
A minorly changed ChangeLog entry:
1999-03-02 Paul Keusemann <pkeusem(a)visi.com>
* database.c (berkdb_map): Add flags argument to cursor call (must
be 0 according to docs) required for Berkely DB 2.6.4 and later.
--- database.c~orig Tue Mar 2 23:15:17 1999
+++ database.c Tue Mar 2 23:14:24 1999
@@ -501,7 +501,11 @@
{
DBC *dbcp;
+#if DB_VERSION_MAJOR > 2 || DB_VERSION_MINOR >=6
+ status = dbp->cursor (dbp, NULL, &dbcp, 0);
+#else
status = dbp->cursor (dbp, NULL, &dbcp);
+#endif
for (status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_FIRST);
status == 0;
status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_NEXT))