summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-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;