Gregory Neil Shapiro <gshapiro(a)sendmail.org> writes in xemacs-beta(a)xemacs.org:
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:
'Nuf said.
Paul, could you please rework your patch to use logic like the
following? Thanks.
# 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.