From 15816c8e8bd5ab2f027824ea5122d7901633634a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 29 Nov 2012 17:02:42 +0200 Subject: avutil: Include io.h with a separate condition from MapViewOfFile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existence of MapViewOfFile isn't linked to the existence of io.h. Not all versions of windows have MapViewOfFile (in particular, Windows Phone 8 and the "metro" windows 8 API subset don't), while they still have io.h (and need it for open/read/close). Signed-off-by: Martin Storsjö --- libavutil/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavutil/file.c') diff --git a/libavutil/file.c b/libavutil/file.c index 41bd0ddf58..ce02487f35 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -25,10 +25,12 @@ #if HAVE_UNISTD_H #include #endif +#if HAVE_IO_H +#include +#endif #if HAVE_MMAP #include #elif HAVE_MAPVIEWOFFILE -#include #include #endif -- cgit v1.2.3