From bf0cef5c3a114df452e5476167634dd8f51eb448 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Wed, 29 Jul 2015 23:08:09 +0300
Subject: [PATCH] checkasm: Include io.h for isatty, if available
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

configure does check for isatty, and checkasm properly checks
HAVE_ISATTY, but on some platforms (e.g. WinRT), io.h needs to be
included for isatty to be available.

Signed-off-by: Martin Storsjö <martin@martin.st>
---
 tests/checkasm/checkasm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index f1e9cd98be..82c635ec8d 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -29,6 +29,10 @@
 #include "libavutil/cpu.h"
 #include "libavutil/random_seed.h"
 
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
 #if ARCH_X86
 #include "libavutil/x86/cpu.h"
 #endif