[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "fix-libdb-5" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Oct 24 11:44:37 CDT 2011


branch "fix-libdb-5" has been created
        at  e014d30299d962a003539430462581e7b462adae (commit)

- Log -----------------------------------------------------------------
commit e014d30299d962a003539430462581e7b462adae
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