diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-08 02:48:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-08 02:51:56 +0200 |
commit | 5c7bf354dc0c8bea6e7af21c0bc2edad92974274 (patch) | |
tree | 3d825e888063da5d7ac626fda417d5b19ffa8e4a /libavcodec | |
parent | 0ffba9feb649f9c5c286aa836635f3bdb2f70daa (diff) | |
download | ffmpeg-5c7bf354dc0c8bea6e7af21c0bc2edad92974274.tar.gz |
avcodec/crystalhd: Add #if HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/crystalhd.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <inttypes.h> #include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include <libcrystalhd/bc_dts_types.h> #include <libcrystalhd/bc_dts_defs.h> @@ -90,6 +89,10 @@ #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" +#if HAVE_UNISTD_H +#include <unistd.h> +#endif + /** Timeout parameter passed to DtsProcOutput() in us */ #define OUTPUT_PROC_TIMEOUT 50 /** Step between fake timestamps passed to hardware in units of 100ns */ |