[FFmpeg-cvslog] cache: Only include unistd.h if it exists
Derek Buitenhuis
git at videolan.org
Fri Sep 7 20:12:34 CEST 2012
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Fri Sep 7 13:20:42 2012 -0400| [af2a17c09ad1324def0c3d6d8e8a2951ab9f8501] | committer: Michael Niedermayer
cache: Only include unistd.h if it exists
This follows suite from f3be3597079be7cd7adbb8392c32e408cadd3da2.
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=af2a17c09ad1324def0c3d6d8e8a2951ab9f8501
---
libavformat/cache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/cache.c b/libavformat/cache.c
index 900554a..2cfc396 100644
--- a/libavformat/cache.c
+++ b/libavformat/cache.c
@@ -33,10 +33,12 @@
#include "libavutil/file.h"
#include "avformat.h"
#include <fcntl.h>
-#if HAVE_SETMODE
+#if HAVE_IO_H
#include <io.h>
#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <sys/stat.h>
#include <stdlib.h>
#include "os_support.h"
More information about the ffmpeg-cvslog
mailing list