Module: libav
Branch: master
Commit: bf0cef5c3a114df452e5476167634dd8f51eb448

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Wed Jul 29 23:08:09 2015 +0300

checkasm: Include io.h for isatty, if available

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ö <[email protected]>

---

 tests/checkasm/checkasm.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index f1e9cd9..82c635e 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

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to