]> git.pld-linux.org Git - packages/apache1.git/blob - apache1-db4.patch
rel 15; builds
[packages/apache1.git] / apache1-db4.patch
1 --- apache_1.3.42/src/modules/standard/mod_auth_db.c.orig       2011-02-09 16:58:54.748693904 +0100
2 +++ apache_1.3.42/src/modules/standard/mod_auth_db.c    2011-02-09 17:34:00.304686361 +0100
3 @@ -63,7 +63,7 @@
4  #if (DB_VERSION_MAJOR == 3)
5  #define DB3
6  #endif
7 -#if (DB_VERSION_MAJOR == 4)
8 +#if (DB_VERSION_MAJOR >= 4)
9  #define DB4
10  #endif
11  #endif
12 @@ -130,7 +130,7 @@
13  
14  #if defined(DB3) || defined(DB4)
15      if (   db_create(&f, NULL, 0) != 0 
16 -#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0
17 +#if (DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
18          || f->open(f, NULL, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
19  #else
20          || f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
This page took 0.033945 seconds and 4 git commands to generate.