avcodec/crystalhd: Add #if HAVE_UNISTD_H around #include <unistd.h>
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:48:51 +0000 (02:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:51:56 +0000 (02:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/crystalhd.c

index 3f4502b..45b2d46 100644 (file)
@@ -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>
 #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 */