aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-07 13:20:42 -0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-07 19:29:58 +0200
commitaf2a17c09ad1324def0c3d6d8e8a2951ab9f8501 (patch)
treefe0f76d62e618e2220460e8b88da8fa517520481
parentf3be3597079be7cd7adbb8392c32e408cadd3da2 (diff)
downloadffmpeg-af2a17c09ad1324def0c3d6d8e8a2951ab9f8501.tar.gz
cache: Only include unistd.h if it exists
This follows suite from f3be3597079be7cd7adbb8392c32e408cadd3da2. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/cache.c b/libavformat/cache.c
index 900554a82a..2cfc396f29 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"