diff options
author | Michele Calgaro <[email protected]> | 2020-06-01 17:54:31 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-01 20:54:41 +0200 |
commit | d27bcb302f5a7ccb65f0e6a16c9d844f11f5db01 (patch) | |
tree | 6dbda9810a34c0a401cefe59807d3e963422e0be /kbabel/kbabeldict/modules/dbsearchengine2/database.cpp | |
parent | 9a844b5265daaa9ca0e360b3c46989481c374300 (diff) | |
download | tdesdk-d27bcb302f5a7ccb65f0e6a16c9d844f11f5db01.tar.gz tdesdk-d27bcb302f5a7ccb65f0e6a16c9d844f11f5db01.zip |
KBabel: fixed support for Berkekey DB. This resolves issue #7.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 75c62476a59c681f3e8e7ee2ac46b4c8e6dc3c96)
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine2/database.cpp')
-rw-r--r-- | kbabel/kbabeldict/modules/dbsearchengine2/database.cpp | 2 |
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); |