Skip to content

Commit

Permalink
Prefer BDB3/4/5 to BDB1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
saper authored and vdukhovni committed Nov 8, 2016
1 parent afead17 commit 033001e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/hdb/db.c
Expand Up @@ -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 <db_185.h>
Expand Down Expand Up @@ -376,4 +376,4 @@ hdb_db_create(krb5_context context, HDB **db,
return 0;
}

#endif /* HAVE_DB1 */
#endif /* defined(HAVE_DB1) && !defined(HAVE_DB3) */
8 changes: 4 additions & 4 deletions lib/otp/Makefile.am
Expand Up @@ -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
Expand Down

0 comments on commit 033001e

Please sign in to comment.