summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/tty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/mg/tty.c b/usr.bin/mg/tty.c
index fe5a89ca852..2e32d22321f 100644
--- a/usr.bin/mg/tty.c
+++ b/usr.bin/mg/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.11 2002/01/18 08:37:08 art Exp $ */
+/* $OpenBSD: tty.c,v 1.12 2002/02/05 20:47:32 art Exp $ */
/*
* Terminfo display driver
@@ -39,6 +39,7 @@ static int cci;
static int insdel; /* Do we have both insert & delete line? */
static char *scroll_fwd; /* How to scroll forward. */
+#ifdef I_WANT_SIGNAL_RACES
static void winchhandler(int);
static void
@@ -46,6 +47,7 @@ winchhandler(int sig)
{
refresh(0,0);
}
+#endif
/*
* Initialize the terminal when the editor
@@ -69,7 +71,9 @@ ttinit()
panic(p);
}
+#ifdef I_WANT_SIGNAL_RACES
signal(SIGWINCH, winchhandler);
+#endif
scroll_fwd = scroll_forward;
if (scroll_fwd == NULL || *scroll_fwd == '\0') {
/* this is what GNU Emacs does */