From b8859fefcc3f455e666233dc95f4097405240f88 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 1 Mar 2004 11:50:50 +0000 Subject: 19505: compilation with NTTYDISC defined was broken. --- Src/init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index 15e7f9c60..9591671da 100644 --- a/Src/init.c +++ b/Src/init.c @@ -481,6 +481,9 @@ mod_export void init_shout(void) { static char shoutbuf[BUFSIZ]; +#if defined(JOB_CONTROL) && defined(TIOCSETD) && defined(NTTYDISC) + int ldisc; +#endif if (SHTTY == -1) { @@ -490,8 +493,7 @@ init_shout(void) } #if defined(JOB_CONTROL) && defined(TIOCSETD) && defined(NTTYDISC) - int ldisc = NTTYDISC; - + ldisc = NTTYDISC; ioctl(SHTTY, TIOCSETD, (char *)&ldisc); #endif -- cgit v1.2.3