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