summaryrefslogtreecommitdiff
path: root/editors/mg2a/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'editors/mg2a/patches/patch-as')
-rw-r--r--editors/mg2a/patches/patch-as17
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/mg2a/patches/patch-as b/editors/mg2a/patches/patch-as
new file mode 100644
index 00000000000..5f9fba1f8f5
--- /dev/null
+++ b/editors/mg2a/patches/patch-as
@@ -0,0 +1,17 @@
+$NetBSD: patch-as,v 1.1 2007/01/07 00:41:30 rillig Exp $
+
+--- sys/sysv/ttyio.c.orig 1988-07-03 19:51:10.000000000 +0200
++++ sys/sysv/ttyio.c 2007-01-07 01:38:38.616877688 +0100
+@@ -213,10 +213,11 @@ char *s;
+ /*
+ ** This should check the size of the window, and reset if needed.
+ */
+-
+ setttysize()
+ {
+ #ifdef TIOCGWINSZ
++ struct winsize winsize;
++
+ if (ioctl(0, TIOCGWINSZ, (char *) &winsize) == 0) {
+ nrow = winsize . ws_row;
+ ncol = winsize . ws_col;