mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
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 <mans@mansr.com>
This commit is contained in:
parent
c19e0ebe53
commit
539df61193
@ -24,7 +24,11 @@
|
|||||||
* logging functions
|
* logging functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#if HAVE_ISATTY
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "avstring.h"
|
#include "avstring.h"
|
||||||
#include "avutil.h"
|
#include "avutil.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user