mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
aa1ce30e6b
PR: 44932 Submitted by: TANAKA Hiroyuki <kattyo@abk.nu>
21 lines
460 B
C
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);
|