ffmpeg: Only include unistd.h if it exists
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 11 Sep 2012 19:54:09 +0000 (15:54 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Sep 2012 20:59:43 +0000 (22:59 +0200)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 18b7383..4d12f80 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
 #include <errno.h>
 #include <limits.h>
 #if HAVE_ISATTY
+#if HAVE_IO_H
+#include <io.h>
+#endif
+#if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#endif
 #include "libavformat/avformat.h"
 #include "libavdevice/avdevice.h"
 #include "libswscale/swscale.h"