$NetBSD: patch-bh,v 1.2 2008/12/17 02:19:59 christos Exp $ --- readline/history.c.orig 1995-02-24 16:20:00.000000000 -0500 +++ readline/history.c 2008-12-16 20:37:14.000000000 -0500 @@ -42,9 +42,11 @@ #endif /* !__GNU_C__ */ #include +#include #include #include #include +#include #include #include "history.h" @@ -466,7 +468,6 @@ char *input, *buffer = (char *)NULL; int file, current_line; struct stat finfo; - extern int errno; input = history_filename (filename); file = open (input, O_RDONLY, 0666); @@ -601,7 +602,6 @@ char *filename; int nelements, overwrite; { - extern int errno; register int i; char *output = history_filename (filename); int file, mode;