aboutsummaryrefslogtreecommitdiffstats
path: root/util/ttyio.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ttyio.c')
-rw-r--r--util/ttyio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ttyio.c b/util/ttyio.c
index 08ed41c4d..2cb52448c 100644
--- a/util/ttyio.c
+++ b/util/ttyio.c
@@ -41,7 +41,11 @@ init_ttyfp()
if( ttyfp )
return;
+ #if defined(__MINGW32__)
+ ttyfp = stderr; /* fixme */
+ #else
ttyfp = fopen("/dev/tty", "r+");
+ #endif
if( !ttyfp )
log_fatal("cannot open /dev/tty: %s\n", strerror(errno) );
}