diff options
author | jbj <devnull@localhost> | 2002-12-01 21:34:06 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-01 21:34:06 +0000 |
commit | 80b23366e79f229831efb6a590c90e2724d37927 (patch) | |
tree | e62a5951bd28e84579d84d988e3546808dcd8df3 /rpmdb/tdbi.c | |
parent | 0efbbada0f3005d6f81a940ba7b06aef2703a50b (diff) | |
download | rpm-80b23366e79f229831efb6a590c90e2724d37927.tar.gz rpm-80b23366e79f229831efb6a590c90e2724d37927.tar.bz2 rpm-80b23366e79f229831efb6a590c90e2724d37927.zip |
- use usrlib_LTLIBRARIES to install directly in /usr/lib64 instead.
CVS patchset: 5911
CVS date: 2002/12/01 21:34:06
Diffstat (limited to 'rpmdb/tdbi.c')
-rw-r--r-- | rpmdb/tdbi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rpmdb/tdbi.c b/rpmdb/tdbi.c index a7d2046a0..300817c6b 100644 --- a/rpmdb/tdbi.c +++ b/rpmdb/tdbi.c @@ -25,7 +25,12 @@ main(int argc, char *argv[]) exit (1); } - if ((rc = db->open(db, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664)) != 0) { +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1) + rc = db->open(db, txnid, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664); +#else + rc = db->open(db, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664); +#endif + if (rc != 0) { db->err(db, rc, "db->open"); if (!ec) ec = rc; goto err; |