Browse code

ffmpeg: Only include unistd.h if it exists

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Derek Buitenhuis authored on 2012/09/12 04:54:09
Showing 1 changed files
... ...
@@ -31,8 +31,13 @@
31 31
 #include <errno.h>
32 32
 #include <limits.h>
33 33
 #if HAVE_ISATTY
34
+#if HAVE_IO_H
35
+#include <io.h>
36
+#endif
37
+#if HAVE_UNISTD_H
34 38
 #include <unistd.h>
35 39
 #endif
40
+#endif
36 41
 #include "libavformat/avformat.h"
37 42
 #include "libavdevice/avdevice.h"
38 43
 #include "libswscale/swscale.h"