DB_CURSOR_BULK requires DB 4.8 or later

This commit is contained in:
Viktor Dukhovni
2012-05-29 17:39:40 +00:00
committed by Roland C. Dowdeswell
parent 1b3f1b57b4
commit 1614c49354

View File

@@ -345,7 +345,11 @@ DB_open(krb5_context context, HDB *db, int flags, mode_t mode)
return ret; return ret;
} }
#ifndef DB_CURSOR_BULK
# define DB_CURSOR_BULK 0 /* Missing with DB < 4.8 */
#endif
ret = (*d->cursor)(d, NULL, &dbc, DB_CURSOR_BULK); ret = (*d->cursor)(d, NULL, &dbc, DB_CURSOR_BULK);
if (ret) { if (ret) {
krb5_set_error_message(context, ret, "d->cursor: %s", strerror(ret)); krb5_set_error_message(context, ret, "d->cursor: %s", strerror(ret));
return ret; return ret;