projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1b759
)
Build db3isalive only if it is being used.
author
Ralf Corsépius
<corsepiu@fedoraproject.org>
Tue, 18 Sep 2007 17:04:34 +0000
(19:04 +0200)
committer
Ralf Corsépius
<corsepiu@fedoraproject.org>
Tue, 18 Sep 2007 17:04:34 +0000
(19:04 +0200)
rpmdb/db3.c
patch
|
blob
|
history
diff --git
a/rpmdb/db3.c
b/rpmdb/db3.c
index
089e2f8
..
e023186
100644
(file)
--- 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,