Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] MinGW: fix compile error due to missing ELOOP

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:01:56

Karsten Blees [off-list ref] writes:
MinGW and MSVC before 2010 don't define ELOOP, use EMLINK (aka "Too many
links") instead.

Signed-off-by: Karsten Blees <redacted>
---
Thanks; will apply directly to 'master'.
quoted hunk
 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

-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help