aboutsummaryrefslogtreecommitdiff
path: root/japanese/xtr/files/patch-dosio.c
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/xtr/files/patch-dosio.c')
-rw-r--r--japanese/xtr/files/patch-dosio.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/japanese/xtr/files/patch-dosio.c b/japanese/xtr/files/patch-dosio.c
new file mode 100644
index 000000000000..ff3a0d27ac2e
--- /dev/null
+++ b/japanese/xtr/files/patch-dosio.c
@@ -0,0 +1,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);