aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/prayer/no_db_version_check.patch
blob: 28bb11501dfbcb40bb26a8bab7ce7a3f554beb39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/lib/mydb_db3.c
+++ b/lib/mydb_db3.c
@@ -190,21 +190,10 @@ static int myinit(const char *dbdir, int
 
 static int init(const char *dbdir, int myflags)
 {
-  int   maj, min, patch;
-  char *vstr;
   int   r;
 
   if (dbinit++) return 0;
 
-  vstr = db_version(&maj, &min, &patch);
-  if (maj != DB_VERSION_MAJOR || min != DB_VERSION_MINOR ||
-      DB_VERSION_PATCH > patch) {
-    log_fatal("incorrect version of Berkeley db: "
-              "compiled against %d.%d.%d, linked against %d.%d.%d",
-              DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
-              maj, min, patch);
-  }
-
   if (!(r = myinit(dbdir, myflags)))
     return(0);