aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1998-02-13 19:41:31 +0000
committerTom Yu <tlyu@mit.edu>1998-02-13 19:41:31 +0000
commit3bbba4d6589f800f18caad7713853808054df9cc (patch)
tree5e2cd5de23ca3a94942af7861598a6a4dfe816e4 /src
parentad09563264f6391e517682762c8a153caddd36f6 (diff)
downloadkrb5-3bbba4d6589f800f18caad7713853808054df9cc.zip
krb5-3bbba4d6589f800f18caad7713853808054df9cc.tar.gz
krb5-3bbba4d6589f800f18caad7713853808054df9cc.tar.bz2
* db.h: Rename dbopen to avoid collision with NetBSD libc
* db-ndbm.h: Rename lots of functions to avoid collisions with native dbm implementations. * db-int.h: Rename __hash_open to avoid potential collision with NetBSD libc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10430 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/db2/include/ChangeLog10
-rw-r--r--src/util/db2/include/db-int.h1
-rw-r--r--src/util/db2/include/db-ndbm.h12
-rw-r--r--src/util/db2/include/db.h1
4 files changed, 24 insertions, 0 deletions
diff --git a/src/util/db2/include/ChangeLog b/src/util/db2/include/ChangeLog
index 4ec75bb..c344161 100644
--- a/src/util/db2/include/ChangeLog
+++ b/src/util/db2/include/ChangeLog
@@ -1,3 +1,13 @@
+Fri Feb 13 14:39:25 1998 Tom Yu <tlyu@mit.edu>
+
+ * db.h: Rename dbopen to avoid collision with NetBSD libc.
+
+ * db-ndbm.h: Rename lots of functions to avoid collisions with
+ native dbm implementations.
+
+ * db-int.h: Rename __hash_open to avoid potential collision with
+ NetBSD libc.
+
Thu Aug 15 15:41:12 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* db-ndbm.h: Add prototypes for missing functions dbm_error() and
diff --git a/src/util/db2/include/db-int.h b/src/util/db2/include/db-int.h
index f9da8a2..7c3fc1d 100644
--- a/src/util/db2/include/db-int.h
+++ b/src/util/db2/include/db-int.h
@@ -135,6 +135,7 @@ typedef u_int32_t recno_t;
/* open functions for each database type, used in dbopen() */
+#define __hash_open __kdb2_hash_open
DB *__bt_open __P((const char *, int, int, const BTREEINFO *, int));
DB *__hash_open __P((const char *, int, int, const HASHINFO *, int));
DB *__rec_open __P((const char *, int, int, const RECNOINFO *, int));
diff --git a/src/util/db2/include/db-ndbm.h b/src/util/db2/include/db-ndbm.h
index db03e69..620144e 100644
--- a/src/util/db2/include/db-ndbm.h
+++ b/src/util/db2/include/db-ndbm.h
@@ -62,6 +62,18 @@ typedef struct {
typedef DB DBM;
#define dbm_pagfno(a) DBM_PAGFNO_NOT_AVAILABLE
+#define dbm_close kdb2_dbm_close
+#define dbm_delete kdb2_dbm_delete
+#define dbm_fetch kdb2_dbm_fetch
+#define dbm_firstkey kdb2_dbm_firstkey
+#define dbm_forder kdb2_dbm_forder
+#define dbm_nextkey kdb2_dbm_nextkey
+#define dbm_open kdb2_dbm_open
+#define dbm_store kdb2_dbm_store
+#define dbm_dirinfo kdb2_dbm_dirinfo
+#define dbm_error kdb2_dbm_error
+#define dbm_clearerr kdb2_dbm_clearerr
+
__BEGIN_DECLS
void dbm_close __P((DBM *));
int dbm_delete __P((DBM *, datum));
diff --git a/src/util/db2/include/db.h b/src/util/db2/include/db.h
index 53c587b..2eaf0bc 100644
--- a/src/util/db2/include/db.h
+++ b/src/util/db2/include/db.h
@@ -165,6 +165,7 @@ typedef struct {
#define __END_DECLS
#endif
+#define dbopen kdb2_dbopen
__BEGIN_DECLS
DB *dbopen __P((const char *, int, int, DBTYPE, const void *));
__END_DECLS