pkgsrc/editors/mg2a/patches/patch-as
2007-01-07 00:41:29 +00:00

17 lines
459 B
Text

$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;