summaryrefslogtreecommitdiff
blob: 6be5fafb2311b746f13803fdd64db1898da413b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: c_icap-0.1.3/modules/bdb_tables.c
===================================================================
--- c_icap-0.1.3.orig/modules/bdb_tables.c
+++ c_icap-0.1.3/modules/bdb_tables.c
@@ -108,7 +108,7 @@ int bdb_table_do_real_open(struct ci_loo
     }
 
 
-#if(DB_VERSION_MINOR>=1)
+#if (DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
     if ((ret = dbdata->db->open( dbdata->db, NULL, table->path, NULL,
 				 DB_BTREE, DB_RDONLY|DB_THREAD, 0)) != 0) {
 #else