[FFmpeg-cvslog] log: Include io.h on windows

Ronald S. Bultje git at videolan.org
Tue Jun 26 01:30:14 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 20:57:35 2012 +0300| [246154a9aff222b80befd65faf97494ce9113306] | committer: Martin Storsjö

log: Include io.h on windows

This is required for isatty, which exists on MSVC and is found by
configure, but is provided by io.h instead of unistd.h.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=246154a9aff222b80befd65faf97494ce9113306
---

 libavutil/log.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/log.c b/libavutil/log.c
index e2773d4..9f1d59a 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -39,6 +39,7 @@ static int flags;
 
 #if defined(_WIN32) && !defined(__MINGW32CE__)
 #include <windows.h>
+#include <io.h>
 static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 11 };
 static int16_t background, attr_orig;
 static HANDLE con;



More information about the ffmpeg-cvslog mailing list