mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 19:30:47 -04:00
33 lines
799 B
Plaintext
33 lines
799 B
Plaintext
$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;
|