aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-08 02:48:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 02:51:56 +0200
commit5c7bf354dc0c8bea6e7af21c0bc2edad92974274 (patch)
tree3d825e888063da5d7ac626fda417d5b19ffa8e4a /libavcodec
parent0ffba9feb649f9c5c286aa836635f3bdb2f70daa (diff)
downloadffmpeg-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.c5
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 */