]> git.pld-linux.org Git - packages/apache.git/blame_incremental - apache-db3.patch
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
[packages/apache.git] / apache-db3.patch
... / ...
CommitLineData
1diff -Nur apache_1.3.17.orig/src/helpers/find-dbm-lib apache_1.3.17/src/helpers/find-dbm-lib
2--- apache_1.3.17.orig/src/helpers/find-dbm-lib Wed Dec 13 00:24:03 2000
3+++ apache_1.3.17/src/helpers/find-dbm-lib Wed Feb 7 23:17:03 2001
4@@ -15,6 +15,8 @@
5 DBM_LIB=""
6 if ./helpers/TestCompile lib dbm dbm_open; then
7 DBM_LIB="-ldbm"
8+ elif ./helpers/TestCompile lib db __db_ndbm_open; then
9+ DBM_LIB="-ldb"
10 elif ./helpers/TestCompile lib ndbm dbm_open; then
11 DBM_LIB="-lndbm"
12 if ./helpers/TestCompile lib db1 dbm_open; then
13diff -Nur apache_1.3.17.orig/src/modules/standard/mod_auth_dbm.c apache_1.3.17/src/modules/standard/mod_auth_dbm.c
14--- apache_1.3.17.orig/src/modules/standard/mod_auth_dbm.c Wed Feb 7 23:10:02 2001
15+++ apache_1.3.17/src/modules/standard/mod_auth_dbm.c Wed Feb 7 23:14:06 2001
16@@ -81,7 +81,8 @@
17 #define dbm_fetch sdbm_fetch
18 #define dbm_close sdbm_close
19 #else
20-#include <ndbm.h>
21+#define DB_DBM_HSEARCH 1
22+#include <db.h>
23 #endif
24
25 /*
26diff -Nur apache_1.3.17.orig/src/modules/standard/mod_rewrite.h apache_1.3.17/src/modules/standard/mod_rewrite.h
27--- apache_1.3.17.orig/src/modules/standard/mod_rewrite.h Thu Jan 18 23:31:44 2001
28+++ apache_1.3.17/src/modules/standard/mod_rewrite.h Wed Feb 7 23:15:22 2001
29@@ -130,7 +130,8 @@
30 * so we also need to know the file extension
31 */
32 #ifndef NO_DBM_REWRITEMAP
33-#include <ndbm.h>
34+#define DB_DBM_HSEARCH 1
35+#include <db.h>
36 #if defined(DBM_SUFFIX)
37 #define NDBM_FILE_SUFFIX DBM_SUFFIX
38 #elif defined(__FreeBSD__) || (defined(DB_LOCK) && defined(DB_SHMEM))
This page took 0.091103 seconds and 4 git commands to generate.