提交 539df611 编写于 作者: M Mans Rullgard

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: NMans Rullgard <mans@mansr.com>
上级 c19e0ebe
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册