diff --git a/lib/hdb/db.c b/lib/hdb/db.c index 904f41f97..7b9a5ca81 100644 --- a/lib/hdb/db.c +++ b/lib/hdb/db.c @@ -33,7 +33,7 @@ #include "hdb_locl.h" -#if HAVE_DB1 +#if defined(HAVE_DB1) && !defined(HAVE_DB3) #if defined(HAVE_DB_185_H) #include @@ -376,4 +376,4 @@ hdb_db_create(krb5_context context, HDB **db, return 0; } -#endif /* HAVE_DB1 */ +#endif /* defined(HAVE_DB1) && !defined(HAVE_DB3) */ diff --git a/lib/otp/Makefile.am b/lib/otp/Makefile.am index 371a61ae3..018e4ef32 100644 --- a/lib/otp/Makefile.am +++ b/lib/otp/Makefile.am @@ -19,14 +19,14 @@ lib_LTLIBRARIES = libotp.la libotp_la_LDFLAGS = -version-info 1:5:1 libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) -if HAVE_DB1 -ndbm_wrap = ndbm_wrap.c ndbm_wrap.h -libotp_la_LIBADD += $(DB1LIB) -else if HAVE_DB3 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h libotp_la_LIBADD += $(DB3LIB) else +if HAVE_DB1 +ndbm_wrap = ndbm_wrap.c ndbm_wrap.h +libotp_la_LIBADD += $(DB1LIB) +else ndbm_wrap = libotp_la_LIBADD += $(NDBMLIB) endif