From: Martin Storsjö Date: Sat, 23 Jun 2012 16:21:35 +0000 (+0300) Subject: log: Only include unistd.h if configure found it X-Git-Tag: n1.0~12^2~1102 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=145a8096d53c20da7898539e521e6d4267ab2f09;ds=inline 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ö --- diff --git a/libavutil/log.c b/libavutil/log.c index e4a9fec552..e2773d433d 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -26,7 +26,7 @@ #include "config.h" -#if HAVE_ISATTY +#if HAVE_UNISTD_H #include #endif #include