summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-06-01 17:54:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-06-01 17:55:12 +0900
commit75c62476a59c681f3e8e7ee2ac46b4c8e6dc3c96 (patch)
tree6baef98633cae29c42a0538d2a7a4458836d40b6 /kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
parent287738d6472dc3aef8f493088fd5768e8c63e44e (diff)
downloadtdesdk-75c62476a59c681f3e8e7ee2ac46b4c8e6dc3c96.tar.gz
tdesdk-75c62476a59c681f3e8e7ee2ac46b4c8e6dc3c96.zip
KBabel: fixed support for Berkekey DB. This resolves issue #7.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine2/database.cpp')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
index 0abd3dc5..18fe72c6 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
@@ -33,7 +33,7 @@ int DataBase::open(DBTYPE type,unsigned int flags)
{
int ret;
ret = Db::open(
-#if DB_VERSION_MINOR > 0
+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || (DB_VERSION_MAJOR >= 5)
NULL,
#endif
(const char*)filename.local8Bit(),(const char *)database.local8Bit(),type,flags,0644);