aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-11 15:54:09 -0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-11 22:59:43 +0200
commit23a5a24c0fe5441c4f9af2b012bcbf2f42791809 (patch)
tree3a7642dca8f621411de3c2beb11547dd49aced65
parent30a265f058692f6c5230a73b1870a3dab5b5c9ee (diff)
downloadffmpeg-23a5a24c0fe5441c4f9af2b012bcbf2f42791809.tar.gz
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>
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 18b7383efe..4d12f80533 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -31,8 +31,13 @@
#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"