summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Blees <karsten.blees@gmail.com>2014-07-15 22:53:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-16 17:42:49 (GMT)
commite0a064a10749a8039f28e9bd3de0ffb5cf99e678 (patch)
tree5dcf733bfd8bb6f25ea48a2c26952441dbae815e
parent3d15f536a7f5215eddae20214fb8eaeeb6baaf27 (diff)
downloadgit-e0a064a10749a8039f28e9bd3de0ffb5cf99e678.zip
git-e0a064a10749a8039f28e9bd3de0ffb5cf99e678.tar.gz
git-e0a064a10749a8039f28e9bd3de0ffb5cf99e678.tar.bz2
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>
-rw-r--r--compat/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 8dac6f9..7ff2376 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