[FFmpeg-cvslog] avcodec/crystalhd: Add #if HAVE_UNISTD_H around #include <unistd.h>
Michael Niedermayer
git at videolan.org
Tue Jul 8 03:03:28 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 8 02:48:51 2014 +0200| [5c7bf354dc0c8bea6e7af21c0bc2edad92974274] | committer: Michael Niedermayer
avcodec/crystalhd: Add #if HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c7bf354dc0c8bea6e7af21c0bc2edad92974274
---
libavcodec/crystalhd.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 3f4502b..45b2d46 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 */
More information about the ffmpeg-cvslog
mailing list