From 885a763cacf57d12e08659137942fb327c643272 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 28 Nov 2014 16:11:02 +0100 Subject: [PATCH] avcodec/ppc/h264qpel_template: protect unistd.h by #if HAVE_UNISTD_H Signed-off-by: Michael Niedermayer --- libavcodec/ppc/h264qpel_template.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/ppc/h264qpel_template.c b/libavcodec/ppc/h264qpel_template.c index e3c09ba5c8..9a345485ba 100644 --- a/libavcodec/ppc/h264qpel_template.c +++ b/libavcodec/ppc/h264qpel_template.c @@ -18,7 +18,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" +#if HAVE_UNISTD_H #include +#endif + #include "libavutil/mem.h" #include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h"