[PATCH] Allow using Berkeley DB instead of gdbm

Marco d'Itri md at Linux.IT
Sat Aug 26 21:06:50 UTC 2006


I see no reason to use an obscure DB library when INN is already linked
with libdb. configure needs to be updated to allow setting HAVE_BDB_DBM.

diff -ruN inn-2.4.3.orig/authprogs/ckpasswd.c inn-2.4.3/authprogs/ckpasswd.c
--- inn-2.4.3.orig/authprogs/ckpasswd.c	2006-03-20 05:14:57.000000000 +0100
+++ inn-2.4.3/authprogs/ckpasswd.c	2006-08-18 12:17:28.000000000 +0200
@@ -32,6 +32,9 @@
 #  include <gdbm-ndbm.h>
 # elif HAVE_DB1_NDBM_H
 #  include <db1/ndbm.h>
+# elif HAVE_BDB_DBM
+#  define DB_DBM_HSEARCH 1
+#  include <db.h>
 # endif
 # define OPT_DBM "d:"
 #else

-- 
ciao,
Marco


More information about the inn-workers mailing list