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 <blees@dcon.de> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Karsten Blees committed
Jul 16, 2014 at 00:53 UTC
e0a064a10749a8039f28e9bd3de0ffb5cf99e678
1 file changed
+3
compat/mingw.h
+3
@@ -35,6 +35,9 @@ typedef int socklen_t;
35
#ifndef EWOULDBLOCK
36
#define EWOULDBLOCK EAGAIN
37
#endif
38
+#ifndef ELOOP
39
+#define ELOOP EMLINK
40
+#endif
41
#define SHUT_WR SD_SEND
42
43
#define SIGHUP 1