summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-bh
blob: 86a5a720c157ef87e1529db1e109a65681d2cf1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-bh,v 1.1 2005/12/14 13:53:24 joerg Exp $

--- readline/history.c.orig	1995-02-24 21:20:00.000000000 +0000
+++ readline/history.c
@@ -45,6 +45,7 @@ extern char *alloca ();
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/stat.h>
+#include <errno.h>
 #include <fcntl.h>
 #include "history.h"
 
@@ -466,7 +467,6 @@ read_history_range (filename, from, to)
   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 +601,6 @@ history_do_write (filename, nelements, o
      char *filename;
      int nelements, overwrite;
 {
-  extern int errno;
   register int i;
   char *output = history_filename (filename);
   int file, mode;