[FFmpeg-cvslog] ffmpeg: Only include unistd.h if it exists

Derek Buitenhuis git at videolan.org
Tue Sep 11 23:00:36 CEST 2012


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Sep 11 15:54:09 2012 -0400| [23a5a24c0fe5441c4f9af2b012bcbf2f42791809] | committer: Michael Niedermayer

ffmpeg: Only include unistd.h if it exists

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23a5a24c0fe5441c4f9af2b012bcbf2f42791809
---

 ffmpeg.c |    5 +++++
 1 file changed, 5 insertions(+)

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"



More information about the ffmpeg-cvslog mailing list