From: Junio C Hamano Date: Wed, 16 Jul 2014 17:43:11 GMT Subject: Re: [PATCH 1/2] MinGW: fix compile error due to missing ELOOP Message-ID: In-Reply-To: <53C5B0E7.4050706@gmail.com> Karsten Blees writes: > MinGW and MSVC before 2010 don't define ELOOP, use EMLINK (aka "Too many > links") instead. > > Signed-off-by: Karsten Blees > --- Thanks; will apply directly to 'master'. > 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 > > --