7809d0
glibc doesn't like errno as the name of a field.
7809d0
--- db.1.85/hash/hash.h	Mon Feb 18 19:12:14 2002
7809d0
+++ db.1.85/hash/hash.h	Mon Feb 18 19:12:20 2002
7809d0
@@ -103,7 +103,7 @@
7809d0
 	BUFHEAD 	*cpage;		/* Current page */
7809d0
 	int		cbucket;	/* Current bucket */
7809d0
 	int		cndx;		/* Index of next item on cpage */
7809d0
-	int		errno;		/* Error Number -- for DBM 
7809d0
+	int		err;		/* Error Number -- for DBM 
7809d0
 					 * compatability */
7809d0
 	int		new_file;	/* Indicates if fd is backing store 
7809d0
 					 * or no */
7809d0
--- db.1.85/hash/hash.c	Mon Feb 18 19:12:24 2002
7809d0
+++ db.1.85/hash/hash.c	Mon Feb 18 19:12:44 2002
7809d0
@@ -505,7 +505,7 @@
7809d0
 	else
7809d0
 		if (wsize != sizeof(HASHHDR)) {
7809d0
 			errno = EFTYPE;
7809d0
-			hashp->errno = errno;
7809d0
+			hashp->err = errno;
7809d0
 			return (-1);
7809d0
 		}
7809d0
 	for (i = 0; i < NCACHED; i++)
7809d0
@@ -536,7 +536,7 @@
7809d0
 
7809d0
 	hashp = (HTAB *)dbp->internal;
7809d0
 	if (flag) {
7809d0
-		hashp->errno = errno = EINVAL;
7809d0
+		hashp->err = errno = EINVAL;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 	return (hash_access(hashp, HASH_GET, (DBT *)key, data));
7809d0
@@ -553,11 +553,11 @@
7809d0
 
7809d0
 	hashp = (HTAB *)dbp->internal;
7809d0
 	if (flag && flag != R_NOOVERWRITE) {
7809d0
-		hashp->errno = errno = EINVAL;
7809d0
+		hashp->err = errno = EINVAL;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 	if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
7809d0
-		hashp->errno = errno = EPERM;
7809d0
+		hashp->err = errno = EPERM;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 	return (hash_access(hashp, flag == R_NOOVERWRITE ?
7809d0
@@ -574,11 +574,11 @@
7809d0
 
7809d0
 	hashp = (HTAB *)dbp->internal;
7809d0
 	if (flag && flag != R_CURSOR) {
7809d0
-		hashp->errno = errno = EINVAL;
7809d0
+		hashp->err = errno = EINVAL;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 	if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
7809d0
-		hashp->errno = errno = EPERM;
7809d0
+		hashp->err = errno = EPERM;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 	return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
7809d0
@@ -729,7 +729,7 @@
7809d0
 
7809d0
 	hashp = (HTAB *)dbp->internal;
7809d0
 	if (flag && flag != R_FIRST && flag != R_NEXT) {
7809d0
-		hashp->errno = errno = EINVAL;
7809d0
+		hashp->err = errno = EINVAL;
7809d0
 		return (ERROR);
7809d0
 	}
7809d0
 #ifdef HASH_STATISTICS
7809d0
--- db.1.85/hash/ndbm.c	Mon Feb 18 19:12:58 2002
7809d0
+++ db.1.85/hash/ndbm.c	Mon Feb 18 19:13:05 2002
7809d0
@@ -180,7 +180,7 @@
7809d0
 	HTAB *hp;
7809d0
 
7809d0
 	hp = (HTAB *)db->internal;
7809d0
-	return (hp->errno);
7809d0
+	return (hp->err);
7809d0
 }
7809d0
 
7809d0
 extern int
7809d0
@@ -190,7 +190,7 @@
7809d0
 	HTAB *hp;
7809d0
 
7809d0
 	hp = (HTAB *)db->internal;
7809d0
-	hp->errno = 0;
7809d0
+	hp->err = 0;
7809d0
 	return (0);
7809d0
 }
7809d0