Skip to content

Commit e0a064a

Browse files
kbleesgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3d15f53 commit e0a064a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compat/mingw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ typedef int socklen_t;
3535
#ifndef EWOULDBLOCK
3636
#define EWOULDBLOCK EAGAIN
3737
#endif
38+
#ifndef ELOOP
39+
#define ELOOP EMLINK
40+
#endif
3841
#define SHUT_WR SD_SEND
3942

4043
#define SIGHUP 1

0 commit comments

Comments
 (0)