From: Karsten Blees Date: Tue, 15 Jul 2014 22:53:27 +0000 (+0200) Subject: MinGW: fix compile error due to missing ELOOP X-Git-Tag: v2.1.0-rc0~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0a064a10749a8039f28e9bd3de0ffb5cf99e678;p=thirdparty%2Fgit.git MinGW: fix compile error due to missing ELOOP MinGW and MSVC before 2010 don't define ELOOP, use EMLINK (aka "Too many links") instead. Signed-off-by: Karsten Blees Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/compat/mingw.h b/compat/mingw.h index 8dac6f9d6b..7ff2376335 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