summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-bh
blob: 29799232434c16467040ed2c2cd9530aaaa765e1 (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
29
30
31
32
$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 <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/stat.h>
+#include <errno.h>
 #include <fcntl.h>
 #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;