From 64f6e357fdf955e67017dfd34ed06b1478b403e2 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sat, 20 Mar 2010 01:02:45 +0000 Subject: 10l: fix build without termios.h Originally committed as revision 22604 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ffmpeg.c') 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; -- cgit v1.2.3