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 */