From 539df61193f2452ddeb74999f0ae301d7a7318cc Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 21 Jun 2012 16:33:36 +0100 Subject: log: include unistd.h only when needed The only symbol this file uses from unistd.h is isatty(). By including the header only when this function is used, the file can be built on systems without unistd.h (which presumably also lack isatty). Signed-off-by: Mans Rullgard --- libavutil/log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavutil') diff --git a/libavutil/log.c b/libavutil/log.c index 5e841296bb..e4a9fec552 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -24,7 +24,11 @@ * logging functions */ +#include "config.h" + +#if HAVE_ISATTY #include +#endif #include #include "avstring.h" #include "avutil.h" -- cgit v1.2.3