From 5c7bf354dc0c8bea6e7af21c0bc2edad92974274 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 8 Jul 2014 02:48:51 +0200 Subject: [PATCH] avcodec/crystalhd: Add #if HAVE_UNISTD_H around #include Signed-off-by: Michael Niedermayer --- libavcodec/crystalhd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 3f4502b3d0..45b2d46661 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -77,7 +77,6 @@ #include #include #include -#include #include #include @@ -90,6 +89,10 @@ #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" +#if HAVE_UNISTD_H +#include +#endif + /** Timeout parameter passed to DtsProcOutput() in us */ #define OUTPUT_PROC_TIMEOUT 50 /** Step between fake timestamps passed to hardware in units of 100ns */