Skip to content

Instantly share code, notes, and snippets.

@mkrautz
Created June 30, 2010 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrautz/459204 to your computer and use it in GitHub Desktop.
Save mkrautz/459204 to your computer and use it in GitHub Desktop.
Patch for Ice-3.4.1 to work with Berkely DB 5.X.
--- ./cpp/src/Freeze/MapI.cpp
+++ ./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);
@mkrautz
Copy link
Author

mkrautz commented Jul 9, 2010

Patch for Ice-3.4.1 to work with Berkely DB 5.X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment