summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-20 01:02:45 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-20 01:02:45 +0000
commit64f6e357fdf955e67017dfd34ed06b1478b403e2 (patch)
tree28b2981a2d01a46b23ecd64488f31a85279729e1
parent673fc6388f009d50c59e2ac75b4ab4de05f7fe26 (diff)
10l: fix build without termios.h
Originally committed as revision 22604 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 5e35022688..951b0daec2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -318,12 +318,14 @@ typedef struct AVInputFile {
/* init terminal so that we can grab keys */
static struct termios oldtty;
+#endif
static void term_exit(void)
{
+#if HAVE_TERMIOS_H
tcsetattr (0, TCSANOW, &oldtty);
-}
#endif
+}
static volatile int received_sigterm = 0;