From 3a822f390e63a6fe847eb5a4ead03c0aaf32cb3e Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sat, 23 Jan 2010 07:18:36 +0000 Subject: bdb: fix build issue. Thanks to Patrick Matthaei Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 544 (Fails to build with libdb 4.8) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=544 --- xlators/storage/bdb/src/bdb-ll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xlators/storage/bdb/src/bdb-ll.c b/xlators/storage/bdb/src/bdb-ll.c index 290b29710..d247db068 100644 --- a/xlators/storage/bdb/src/bdb-ll.c +++ b/xlators/storage/bdb/src/bdb-ll.c @@ -954,8 +954,9 @@ bdb_dbenv_init (xlator_t *this, } ret = 0; -#if (DB_VERSION_MAJOR == 4 && \ - DB_VERSION_MINOR == 7) + +#if ((DB_VERSION_MAJOR > 4) || \ + (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 7)) if (private->log_auto_remove) { ret = dbenv->log_set_config (dbenv, DB_LOG_AUTO_REMOVE, 1); } else { -- cgit