From 0a3d0886376b9739a98ae4811652e1b6360eaa0c Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 9 Dec 2005 13:47:58 +0000 Subject: [PATCH] Fix errno. --- editors/bvi/distinfo | 4 +++- editors/bvi/patches/patch-aa | 21 +++++++++++++++++++++ editors/bvi/patches/patch-ab | 20 ++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 editors/bvi/patches/patch-aa create mode 100644 editors/bvi/patches/patch-ab diff --git a/editors/bvi/distinfo b/editors/bvi/distinfo index 657930b08e55..a52706183776 100644 --- a/editors/bvi/distinfo +++ b/editors/bvi/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.5 2005/02/23 17:15:10 agc Exp $ +$NetBSD: distinfo,v 1.6 2005/12/09 13:47:58 joerg Exp $ SHA1 (bvi-1.3.2.src.tar.gz) = 0ff213ebb5cd0993c5d1f7c8d4172aaec709aac1 RMD160 (bvi-1.3.2.src.tar.gz) = d50aa06d5c978026d363002fee194802b2096cbc Size (bvi-1.3.2.src.tar.gz) = 170444 bytes +SHA1 (patch-aa) = e62f72fd84d03a0109a0b02950aff468ba5639b6 +SHA1 (patch-ab) = b3aa82a7fea3122328a2bee8e532684bf7f306c2 diff --git a/editors/bvi/patches/patch-aa b/editors/bvi/patches/patch-aa new file mode 100644 index 000000000000..0cf5348be368 --- /dev/null +++ b/editors/bvi/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.3 2005/12/09 13:47:58 joerg Exp $ + +--- comm.c.orig 2005-12-09 13:37:50.000000000 +0000 ++++ comm.c +@@ -32,6 +32,8 @@ + #include "bvi.h" + #include "set.h" + ++#include ++ + #ifdef HAVE_UNISTD_H + # include + #endif +@@ -81,7 +83,6 @@ PTR end_addr; + extern char *name; /* actual filename */ + extern char **files; /* used for "next" and "rewind" */ + extern int numfiles, curfile; +-extern int errno; + + static char oldbuf[CMDSZ]; /** for :!! command **/ + diff --git a/editors/bvi/patches/patch-ab b/editors/bvi/patches/patch-ab new file mode 100644 index 000000000000..7ca125fa1153 --- /dev/null +++ b/editors/bvi/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1 2005/12/09 13:47:58 joerg Exp $ + +--- bm_unix.c.orig 2005-12-09 13:38:29.000000000 +0000 ++++ bm_unix.c +@@ -25,6 +25,7 @@ + + + #include "bmore.h" ++#include + #include + + #define TBUFSIZ 1024 +@@ -257,7 +258,6 @@ int + vgetc() + { + char cha; +- extern int errno; + + errno = 0; + if (read(2, &cha, 1) <= 0) {