[FFmpeg-devel] [PATCH 1/3] ffmpeg: Only include unistd.h if it exists

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Sep 11 21:54:09 CEST 2012


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 ffmpeg.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 18b7383..4d12f80 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"
-- 
1.7.8.msysgit.0



More information about the ffmpeg-devel mailing list