From 1a1d2af0127944d331584a77dec2efca7fec56ba Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Fri, 21 Jun 2002 00:26:26 +0000 Subject: [PATCH] Fixed to compile under FreeBSD 4.6-RELEASE. Must include ndbm.h rather than db.h. --- configure.in | 1 + isync.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index fce72f6..c8724d2 100644 --- a/configure.in +++ b/configure.in @@ -37,6 +37,7 @@ if test $ac_cv_dbmopen = no; then if test $ac_cv_libdb = yes; then LIBS="$LIBS -ldb" + AC_DEFINE(HAVE_LIBDB) else AC_MSG_ERROR([Could not find dbm_open(), you must install libdb]) fi diff --git a/isync.h b/isync.h index 3b1f8a9..ee0ca4e 100644 --- a/isync.h +++ b/isync.h @@ -18,14 +18,18 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if HAVE_LIBDB #define DB_DBM_HSEARCH 1 +#include +#else +#include +#endif #include #include #if HAVE_LIBSSL #include #endif -#include #include "debug.h" typedef struct