From 63648e5a99e52315e3a9f75d45dcc28f7be5b1e6 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 15 Aug 1996 20:49:53 +0000 Subject: [PATCH] Since we are only supporting the db in the util/db2 directory, just use db-ndbm.h, instead of hoping that the system ndbm.h will be appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8940 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 6 ++++++ src/include/k5-int.h | 35 +++++------------------------------ 2 files changed, 11 insertions(+), 30 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 2cc0cb730..e05055b70 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +Thu Aug 15 16:31:20 1996 Theodore Ts'o + + * k5-int.h: Since we are only supporting the db in the util/db2 + directory, just use db-ndbm.h, instead of hoping that the + system ndbm.h will be appropriate. + Fri Aug 2 14:15:26 1996 Ezra Peisach * krb5.hin: Add prototype for krb5_free_keyblock_contents diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 4b3e5a6df..198a4d33b 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -553,37 +553,12 @@ typedef struct _krb5_sam_response { */ #if !defined(_MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32) -#ifndef ODBM -#include -#else /* ODBM */ -#ifdef unicos61 -#include -#else -#include -#endif -#endif /*ODBM */ - -#ifndef ODBM -#define dbm_next(db,key) dbm_nextkey(db) -#else /* OLD DBM */ -typedef char DBM; - -/* Macros to convert ndbm names to dbm names. - * Note that dbm_nextkey() cannot be simply converted using a macro, since - * it is invoked giving the database, and nextkey() needs the previous key. - * - * Instead, all routines call "dbm_next" instead. - */ - -#define dbm_open(file, flags, mode) ((dbminit(file) == 0)?"":((char *)0)) -#define dbm_fetch(db, key) fetch(key) -#define dbm_store(db, key, content, flag) store(key, content) -#define dbm_delete(db, key) delete(key) -#define dbm_firstkey(db) firstkey() -#define dbm_next(db,key) nextkey(key) -#define dbm_close(db) dbmclose() -#endif /* OLD DBM */ +/* + * Since we are always using db, use the db-ndbm include header file. + */ +#include "db-ndbm.h" + #endif /* !MSDOS && !MACINTOSH */ /* * End "dbm.h" -- 2.26.2