aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/squidguard/squidguard-1.4-debian-bdb-51.patch
blob: fc12c14b654500072b46682f31ea72dde2d01073 (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
Package:     squidguard
Subject:     make it useable with Berkeley DB version 5.x
Author:      Joachim Wiedorn <ad_debian at joonet.de>
Bug-Debian:  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621376
Forwarded:   yes
Last-Update: 2011-05-31

Since the end of 2010 the is a new major version of Berkeley DB.
For use with squidguard it need this patch.

---

diff -urN s07/src/sgDb.c s08/src/sgDb.c
--- s07/src/sgDb.c	2008-07-14 20:29:41.000000000 +0200
+++ s08/src/sgDb.c	2011-05-31 20:06:26.328740739 +0200
@@ -114,7 +114,7 @@
     }
   }
 #endif
-#if DB_VERSION_MAJOR == 4
+#if DB_VERSION_MAJOR == 4 || DB_VERSION_MAJOR == 5
   if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){
     flag = DB_CREATE;
     if(createdb)