Fixed to compile under FreeBSD 4.6-RELEASE. Must include ndbm.h rather than
db.h.
This commit is contained in:
parent
85b5c5b8c9
commit
1a1d2af012
|
@ -37,6 +37,7 @@ if test $ac_cv_dbmopen = no; then
|
||||||
|
|
||||||
if test $ac_cv_libdb = yes; then
|
if test $ac_cv_libdb = yes; then
|
||||||
LIBS="$LIBS -ldb"
|
LIBS="$LIBS -ldb"
|
||||||
|
AC_DEFINE(HAVE_LIBDB)
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR([Could not find dbm_open(), you must install libdb])
|
AC_MSG_ERROR([Could not find dbm_open(), you must install libdb])
|
||||||
fi
|
fi
|
||||||
|
|
6
isync.h
6
isync.h
|
@ -18,14 +18,18 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_LIBDB
|
||||||
#define DB_DBM_HSEARCH 1
|
#define DB_DBM_HSEARCH 1
|
||||||
|
#include <db.h>
|
||||||
|
#else
|
||||||
|
#include <ndbm.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#if HAVE_LIBSSL
|
#if HAVE_LIBSSL
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#endif
|
#endif
|
||||||
#include <db.h>
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
Loading…
Reference in New Issue
Block a user