Handle compiling with BERK_DB without dbm available. (Linux when
authorEzra Peisach <epeisach@mit.edu>
Tue, 7 May 1996 23:53:23 +0000 (23:53 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 7 May 1996 23:53:23 +0000 (23:53 +0000)
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
src/lib/kdb/t_kdb.c

index 97fd97b77defd36a64d0a6c4cd9b5b1e1bd0fa78..2ad7a3928d30925a9e26738a10af70d4c58881fa 100644 (file)
@@ -1,3 +1,8 @@
+Tue May  7 19:48:57 1996  Ezra Peisach  <epeisach@dumpster.rose.brandeis.edu>
+
+       * 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  <basch@lehman.com>
 
        * decrypt_key.c (krb5_dbekd_decrypt_key_data): bullet-proofing the
index f6ede021b69e59f24ea2b16c73be44adc7bc5da8..5c55f2ff624a385b6f0301d0d55d509430efd04d 100644 (file)
@@ -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 */
 
 \f
 /*
@@ -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: