1 --- src/dosio.c.orig	Tue Nov  5 18:29:49 2002
2 +++ src/dosio.c	Tue Nov  5 18:30:30 2002
3 @@ -287,12 +287,14 @@
4  {
5  	static int raw_mode = 0;
6 
7 -	if (close_tty)
8 -		FError("There is no control-terminal.");
9 -
10  #if HAVE_TERMIOS_H && HAVE_TERMIOS_FUNCS
11  	struct termios s;
12  	static struct termios os;
13 +#endif
14 +
15 +#if HAVE_TERMIOS_H && HAVE_TERMIOS_FUNCS
16 +	if (close_tty)
17 +		FError("There is no control-terminal.");
18 
19  	if (flag > 0) {
20  		tcgetattr(fileno(stdin), &s);
21