Module: libav Branch: master Commit: 539df61193f2452ddeb74999f0ae301d7a7318cc
Author: Mans Rullgard <[email protected]> Committer: Mans Rullgard <[email protected]> Date: Thu Jun 21 16:33:36 2012 +0100 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 <[email protected]> --- libavutil/log.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavutil/log.c b/libavutil/log.c index 5e84129..e4a9fec 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -24,7 +24,11 @@ * logging functions */ +#include "config.h" + +#if HAVE_ISATTY #include <unistd.h> +#endif #include <stdlib.h> #include "avstring.h" #include "avutil.h" _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
