checkasm: Include io.h for isatty, if available
authorMartin Storsjö <martin@martin.st>
Wed, 29 Jul 2015 20:08:09 +0000 (23:08 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 30 Jul 2015 06:27:09 +0000 (09:27 +0300)
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

index f1e9cd9..82c635e 100644 (file)
 #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