improve readability of ->open ifdef, check if version >= 4.1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12882 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -274,7 +274,7 @@ DB_open(krb5_context context, HDB *db, int flags, mode_t mode)
|
||||
#endif
|
||||
if(ret == ENOENT)
|
||||
/* try to open without .db extension */
|
||||
#if (DB_VERSION_MAJOR > 3) && (DB_VERSION_MINOR > 0)
|
||||
#if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
|
||||
if (d->open(db->hdb_db, NULL, db->hdb_name, NULL, DB_BTREE, myflags, mode)) {
|
||||
#else
|
||||
if (d->open(db->hdb_db, db->hdb_name, NULL, DB_BTREE, myflags, mode)) {
|
||||
|
Reference in New Issue
Block a user