Re: [PATCH 1/2] MinGW: fix compile error due to missing ELOOP
Karsten Blees <karsten.blees@gmail.com> writes:
Show 5 quoted lines
> MinGW and MSVC before 2010 don't define ELOOP, use EMLINK (aka "Too many
> links") instead.
>
> Signed-off-by: Karsten Blees <blees@dcon.de>
> ---
Thanks; will apply directly to 'master'.
Show 21 quoted lines
> compat/mingw.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/compat/mingw.h b/compat/mingw.h
> index 405c08f..510530c 100644
> --- a/compat/mingw.h
> +++ b/compat/mingw.h
> @@ -35,6 +35,9 @@ typedef int socklen_t;
> #ifndef EWOULDBLOCK
> #define EWOULDBLOCK EAGAIN
> #endif
> +#ifndef ELOOP
> +#define ELOOP EMLINK
> +#endif
> #define SHUT_WR SD_SEND
>
> #define SIGHUP 1
> --
> 2.0.1.779.g26aeac4.dirty
>
> --