summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/MapI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2015-02-27 16:56:42 +0000
committerBernard Normier <bernard@zeroc.com>2015-02-27 16:56:42 +0000
commit97e50ee5ae43e6e067eba7943453d7e61963ebe9 (patch)
tree324242c4fa8ac52510a4324b93fdf73b0fce16ce /cpp/src/Freeze/MapI.cpp
parentICE-5967 add cancelation to Ice.Trace.Retry tracing (diff)
downloadice-97e50ee5ae43e6e067eba7943453d7e61963ebe9.tar.bz2
ice-97e50ee5ae43e6e067eba7943453d7e61963ebe9.tar.xz
ice-97e50ee5ae43e6e067eba7943453d7e61963ebe9.zip
ICE-6337: small fix to C++ source code to allow building with DB 6.x
Diffstat (limited to 'cpp/src/Freeze/MapI.cpp')
-rw-r--r--cpp/src/Freeze/MapI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp
index e6723623703..0b4ffa64a7d 100644
--- a/cpp/src/Freeze/MapI.cpp
+++ b/cpp/src/Freeze/MapI.cpp
@@ -1759,7 +1759,11 @@ Freeze::MapHelperI::closeAllIteratorsExcept(const IteratorHelperI::TxPtr& tx) co
extern "C"
{
+#if (DB_VERSION_MAJOR <= 5)
static int customIndexCompare(DB* db, const DBT* dbt1, const DBT* dbt2)
+#else
+ static int customIndexCompare(DB* db, const DBT* dbt1, const DBT* dbt2, size_t*)
+#endif
{
MapIndexI* me = static_cast<MapIndexI*>(db->app_private);
Byte* first = static_cast<Byte*>(dbt1->data);