1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/japanese/xtr/files/patch-dosio.c
Oliver Lehmann aa1ce30e6b Add xtr 1.50e.0.2, a powerful Japanese text formatting processor.
PR:		44932
Submitted by:	TANAKA Hiroyuki <kattyo@abk.nu>
2003-07-24 19:06:34 +00:00

21 lines
460 B
C

--- 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);