]> git.pld-linux.org Git - packages/apache1.git/blob - apache-db3.patch
fix mod_rewrite, too
[packages/apache1.git] / apache-db3.patch
1 diff -urN apache_1.3.17.org/src/modules/standard/mod_auth_dbm.c apache_1.3.17/src/modules/standard/mod_auth_dbm.c
2 --- apache_1.3.17.org/src/modules/standard/mod_auth_dbm.c       Fri Feb  2 15:29:26 2001
3 +++ apache_1.3.17/src/modules/standard/mod_auth_dbm.c   Fri Feb  2 15:29:38 2001
4 @@ -81,8 +81,12 @@
5  #define dbm_fetch sdbm_fetch
6  #define dbm_close sdbm_close
7  #elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
8 -    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
9 +    && __GLIBC__ >= 2 && __GLIBC_MINOR__ == 1
10  #include <db1/ndbm.h>
11 +#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
12 +    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 2
13 +#define DB_DBM_HSEARCH 1
14 +#include <db.h>
15  #else
16  #include <ndbm.h>
17  #endif
18 diff -urN apache_1.3.17.org/src/modules/standard/mod_rewrite.h apache_1.3.17/src/modules/standard/mod_rewrite.h
19 --- apache_1.3.17.org/src/modules/standard/mod_rewrite.h        Fri Feb  2 15:29:26 2001
20 +++ apache_1.3.17/src/modules/standard/mod_rewrite.h    Fri Feb  2 15:31:21 2001
21 @@ -131,8 +131,12 @@
22       */
23  #ifndef NO_DBM_REWRITEMAP
24  #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
25 -    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
26 +    && __GLIBC__ >= 2 && __GLIBC_MINOR__ == 1
27  #include <db1/ndbm.h>
28 +#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
29 +    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 2
30 +#define DB_DBM_HSEARCH 1
31 +#include <db.h>
32  #else
33  #include <ndbm.h>
34  #endif
This page took 0.098537 seconds and 4 git commands to generate.