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:
# if DB_VERSION_MAJOR > 2 || DB_VERSION_MINOR >=6
(errno = (*up->udb_dbp->cursor)(up->udb_dbp,
NULL, &dbc, 0)) != 0)
# else
(errno = (*up->udb_dbp->cursor)(up->udb_dbp,
NULL, &dbc)) != 0)
# endif
Thereby only adding the additional argument if you were running a Berkeley
DB version new enough.