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) have MapViewOfFile, while they still have io.h (and need it for open/read/close). --- libavutil/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavutil/file.c b/libavutil/file.c index 41bd0dd..ce02487 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -25,10 +25,12 @@ #if HAVE_UNISTD_H #include <unistd.h> #endif +#if HAVE_IO_H +#include <io.h> +#endif #if HAVE_MMAP #include <sys/mman.h> #elif HAVE_MAPVIEWOFFILE -#include <io.h> #include <windows.h> #endif -- 1.7.9.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
