From 618333608f427980507db0e3eeb534e89754a964 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Tue, 18 Sep 2007 19:04:34 +0200 Subject: [PATCH] Build db3isalive only if it is being used. --- rpmdb/db3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpmdb/db3.c b/rpmdb/db3.c index 089e2f8..e023186 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -195,6 +195,7 @@ static int db3_fsync_disable(int fd) return 0; } +#if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 5) /* * dbenv->failchk() callback method for determining is the given pid/tid * is alive. We only care about pid's though. @@ -214,6 +215,7 @@ static int db3isalive(DB_ENV *dbenv, pid_t pid, db_threadid_t tid, u_int32_t fla return alive; } +#endif static int db_init(dbiIndex dbi, const char * dbhome, const char * dbfile, -- 2.7.4