Module: libav
Branch: master
Commit: 145a8096d53c20da7898539e521e6d4267ab2f09

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Sat Jun 23 19:21:35 2012 +0300

log: Only include unistd.h if configure found it

MSVC has isatty (in io.h), but not unistd.h. (isatty isn't called
at all for windows, since there's a special case block for that.)

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavutil/log.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index e4a9fec..e2773d4 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -26,7 +26,7 @@
 
 #include "config.h"
 
-#if HAVE_ISATTY
+#if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #include <stdlib.h>

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

Reply via email to