From: Derek Buitenhuis Date: Tue, 11 Sep 2012 19:54:09 +0000 (-0400) Subject: ffmpeg: Only include unistd.h if it exists X-Git-Tag: n1.1-dev~282 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/23a5a24c0fe5441c4f9af2b012bcbf2f42791809 ffmpeg: Only include unistd.h if it exists Signed-off-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- diff --git a/ffmpeg.c b/ffmpeg.c index 18b7383..4d12f80 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -31,8 +31,13 @@ #include #include #if HAVE_ISATTY +#if HAVE_IO_H +#include +#endif +#if HAVE_UNISTD_H #include #endif +#endif #include "libavformat/avformat.h" #include "libavdevice/avdevice.h" #include "libswscale/swscale.h"