From 23a5a24c0fe5441c4f9af2b012bcbf2f42791809 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Tue, 11 Sep 2012 15:54:09 -0400 Subject: [PATCH] ffmpeg: Only include unistd.h if it exists Signed-off-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- ffmpeg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 18b7383efe..4d12f80533 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"