summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1996-08-15 20:49:53 +0000
committerTheodore Tso <tytso@mit.edu>1996-08-15 20:49:53 +0000
commit63648e5a99e52315e3a9f75d45dcc28f7be5b1e6 (patch)
tree126943f6b3f029ec566bc176eb8e1c07c532501d /src/include
parentcabe18893f643d4c1932976ee406243b9fac3ae1 (diff)
downloadkrb5-63648e5a99e52315e3a9f75d45dcc28f7be5b1e6.tar.gz
krb5-63648e5a99e52315e3a9f75d45dcc28f7be5b1e6.tar.xz
krb5-63648e5a99e52315e3a9f75d45dcc28f7be5b1e6.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog6
-rw-r--r--src/include/k5-int.h35
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 <tytso@rsts-11.mit.edu>
+
+ * 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 <epeisach@kangaroo.mit.edu>
* 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 <ndbm.h>
-#else /* ODBM */
-#ifdef unicos61
-#include <rpcsvc/dbm.h>
-#else
-#include <dbm.h>
-#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"