[FFmpeg-cvslog] log: Only include unistd.h if configure found it
Martin Storsjö
git at videolan.org
Sun Jun 24 21:41:45 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sat Jun 23 19:21:35 2012 +0300| [145a8096d53c20da7898539e521e6d4267ab2f09] | committer: Martin Storsjö
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ö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=145a8096d53c20da7898539e521e6d4267ab2f09
---
libavutil/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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>
More information about the ffmpeg-cvslog
mailing list