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