Loading...
--- /dev/null
+++ Libc/Libc-498.1.5/db/hash/FreeBSD/hash.c.patch
@@ -0,0 +1,26 @@
+Index: hash.c
+===================================================================
+RCS file: /cvs/root/Libc/db/hash/FreeBSD/hash.c,v
+retrieving revision 1.3
+diff -u -d -b -w -p -u -r1.3 hash.c
+--- hash.c 2004/11/25 19:37:57 1.3
++++ hash.c 2004/12/10 20:34:43
+@@ -58,7 +58,7 @@ __FBSDID("$FreeBSD: src/lib/libc/db/hash
+ #include <db.h>
+ #include "hash.h"
+ #include "page.h"
+-#include "extern.h"
++#include "hash_extern.h"
+
+ static int alloc_segs(HTAB *, int);
+ static int flush_meta(HTAB *);
+@@ -108,8 +108,7 @@ __hash_open(file, flags, mode, info, dfl
+ int bpages, hdrsize, new_table, nsegs, save_errno;
+
+ if ((flags & O_ACCMODE) == O_WRONLY) {
+- errno = EINVAL;
+- return (NULL);
++ flags += O_RDWR - O_WRONLY; /* POSIX */
+ }
+
+ if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB))))