From 117cef9390c03bce650ca7039f3847b320257f0d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 7 May 1996 23:53:23 +0000 Subject: [PATCH] Handle compiling with BERK_DB without dbm available. (Linux when the option --with-kdb-db=db) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7923 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/t_kdb.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 97fd97b77..2ad7a3928 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +Tue May 7 19:48:57 1996 Ezra Peisach + + * t_kdb.c (do_testing): Compile if using BERK_DB and dbm is not + available on system. + Thu Mar 21 20:38:38 1996 Richard Basch * decrypt_key.c (krb5_dbekd_decrypt_key_data): bullet-proofing the diff --git a/src/lib/kdb/t_kdb.c b/src/lib/kdb/t_kdb.c index f6ede021b..5c55f2ff6 100644 --- a/src/lib/kdb/t_kdb.c +++ b/src/lib/kdb/t_kdb.c @@ -108,6 +108,7 @@ static kdb5_dispatch_table berkeley_dispatch = { }; #endif +#if defined(NDBM) || defined(ODBM) /* * The following prototypes are necessary in case dbm_error and * dbm_clearerr are in the library but not prototyped @@ -165,6 +166,7 @@ static kdb5_dispatch_table dbm_dispatch = { dbm_pagfno, /* Get Database FD num */ #endif /* dbm_pagfno */ }; +#endif /* NDBM || ODBM */ /* @@ -492,11 +494,13 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean, goto goodbye; break; #endif +#if defined(ODBM) || defined(NDBM) case DB_DBM: op = "setting up DBM database operations"; if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch)) goto goodbye; break; +#endif case DB_DEFAULT: break; default: @@ -911,10 +915,12 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean, exit(1); break; #endif +#if defined(ODBM) || defined(NDBM) case DB_DBM: if (kret = kdb5_db_set_dbops(ccontext, &dbm_dispatch)) exit(1); break; +#endif case DB_DEFAULT: break; default: @@ -1010,11 +1016,13 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean, goto goodbye1; break; #endif +#if defined(ODBM) || defined(NDBM) case DB_DBM: op = "setting up DBM database operations"; if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch)) goto goodbye1; break; +#endif case DB_DEFAULT: break; default: -- 2.26.2