]> git.pld-linux.org Git - packages/wwwcount.git/blame - wwwcount-db41.patch
- fix building with bdb 5.x
[packages/wwwcount.git] / wwwcount-db41.patch
CommitLineData
c64560f3
JB
1--- wwwcount2.6/libs/ldbm/ldbm.c.orig 2001-10-14 18:46:15.000000000 +0200
2+++ wwwcount2.6/libs/ldbm/ldbm.c 2004-04-09 21:39:49.836061608 +0200
3@@ -13,6 +13,7 @@
4 */
5
6 #include <stdio.h>
7+#include <string.h>
8 #include "ldbm.h"
9
10 /*
11@@ -281,7 +283,11 @@
12 ret->set_malloc( ret, ldbm_malloc );
13 */
14 ret->set_cachesize( ret, 0, dbcachesize, 0 );
094e8c71 15+#if (DB_VERSION_MAJOR == 5) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1))
c64560f3
JB
16+ err = ret->open( ret, NULL, name, NULL, DB_TYPE, rw, mode);
17+#else
18 err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);
19+#endif
20 /*LDBM_UNLOCK*/;
21 if ( err != 0 )
22 {
This page took 0.077105 seconds and 4 git commands to generate.