From 64f6e357fdf955e67017dfd34ed06b1478b403e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 20 Mar 2010 01:02:45 +0000 Subject: [PATCH] 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(-) diff --git a/ffmpeg.c b/ffmpeg.c index 5e3502268..951b0daec 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; -- 2.11.0