summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-24 20:57:35 +0300
committerMartin Storsjö <martin@martin.st>2012-06-25 23:28:36 +0300
commit246154a9aff222b80befd65faf97494ce9113306 (patch)
tree29c23e86bc493c021e8df92a9e96d34d0ec34f89 /libavutil/log.c
parent14a34d90ad1c8a47464937c6df4bda83451c07af (diff)
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@martin.st>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index e2773d433d..9f1d59ab9c 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;