Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created January 16, 2012 04:21
Show Gist options
  • Save m4tm4t/1619052 to your computer and use it in GitHub Desktop.
Save m4tm4t/1619052 to your computer and use it in GitHub Desktop.
Patch for Ice-3.4.2 to work with Berkeley DB 5.X.
--- ./cpp/src/Freeze/MapI.cpp
+++ ./cpp/src/Freeze/MapI.cpp
@@ -1487,10 +1487,10 @@
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment