[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "review/bdb-5.x-compat" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Jan 16 14:30:19 CST 2012


branch "review/bdb-5.x-compat" has been created
        at  1f2108604a33aa0b4081250578261800478fb326 (commit)

- Log -----------------------------------------------------------------
commit 1f2108604a33aa0b4081250578261800478fb326
Author: David M. Lee <dlee at digium.com>
Date:   Thu Oct 20 09:51:57 2011 -0500

    Fixed version check for libdb-5.

diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp
index c7f0719..4aaa80a 100644
--- a/cpp/src/Freeze/MapI.cpp
+++ b/cpp/src/Freeze/MapI.cpp
@@ -1487,10 +1487,10 @@ Freeze::MapHelperI::size() const
 
     try
     {
-#if DB_VERSION_MAJOR != 4
-#error Freeze requires DB 4.x
+#if DB_VERSION_MAJOR < 4
+#error Freeze requires DB 4.x or greater
 #endif
-#if DB_VERSION_MINOR < 3
+#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3
         _db->stat(&s, 0);
 #else
         _db->stat(_connection->dbTxn(), &s, 0);

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice.git



More information about the asterisk-scf-commits mailing list