On Thu, Nov 29, 2012 at 04:33:14PM +0200, Martin Storsjö wrote:
> The existence of MapViewOfFile isn't linked to the existence of
> io.h.
> 
> --- 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

What about the remaining, differently guarded io.h #include in
libavutil/log.c?

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to