[FFmpeg-devel] [PATCH 2/2] network: Define ENOTCONN as WSAENOTCONN if not defined

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Dec 11 16:38:12 EET 2019


Am Mi., 11. Dez. 2019 um 13:21 Uhr schrieb Martin Storsjö <martin at martin.st>:
>
> This fixes compilation with old mingw.org toolchains, which has got
> much fewer errno.h entries.
> ---
> There's still a couple fate instances that use mingw.org headers/libs,
> and this is the only detail that currently stops them from building.
> ---
>  libavformat/network.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/libavformat/network.h b/libavformat/network.h
> index 7f467304a8..71347e815b 100644
> --- a/libavformat/network.h
> +++ b/libavformat/network.h
> @@ -50,6 +50,9 @@
>  #ifndef EINPROGRESS
>  #define EINPROGRESS     WSAEINPROGRESS
>  #endif
> +#ifndef ENOTCONN
> +#define ENOTCONN        WSAENOTCONN
> +#endif

Looks very useful.

Please commit, Carl Eugen


More information about the ffmpeg-devel mailing list