summaryrefslogtreecommitdiff
path: root/dbm
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-12-09 20:19:43 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-12-09 20:19:43 +0000
commit5888cd9211cdcbd36e5a0a72f09814e1cf1b99f7 (patch)
tree71d1d701b989775499516f8726f1cd7c82cddd3a /dbm
parent5087344c3a4e15782238f90d667e9142e9b7942b (diff)
downloadlibapr-util-5888cd9211cdcbd36e5a0a72f09814e1cf1b99f7.tar.gz
Add DB4 detection. It is identical to DB3 for all of our current purposes.
Also, clean up the autoconf DB macros to be name-space protected and cleaner per Greg's suggestions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dbm')
-rw-r--r--dbm/apr_dbm_berkeleydb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dbm/apr_dbm_berkeleydb.c b/dbm/apr_dbm_berkeleydb.c
index f881f553..5a25aa68 100644
--- a/dbm/apr_dbm_berkeleydb.c
+++ b/dbm/apr_dbm_berkeleydb.c
@@ -76,10 +76,14 @@
/*
* We pick up all varieties of Berkeley DB through db.h (included through
* apu_select_dbm.h). This code has been compiled/tested against DB1,
- * DB_185, DB2, and DB3.
+ * DB_185, DB2, DB3, and DB4.
*/
-#if defined(DB_VERSION_MAJOR) && (DB_VERSION_MAJOR == 3)
+#if defined(DB_VERSION_MAJOR) && (DB_VERSION_MAJOR == 4)
+/* At this time, there are no differences from our perspective between
+ * DB3 and DB4. */
+#define DB_VER 3
+#elif defined(DB_VERSION_MAJOR) && (DB_VERSION_MAJOR == 3)
#define DB_VER 3
#elif defined(DB_VERSION_MAJOR) && (DB_VERSION_MAJOR == 2)
#define DB_VER 2