MSVC: fix compile errors due to macro redefinitions

Skip errno.h definitions if they are already defined. Signed-off-by: Karsten Blees <blees@dcon.de> Acked-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karsten Blees committed Sep 11, 2013 at 01:22 UTC 61542f7735a71ec0e28744a79828a8cc93aea9c6
1 file changed +6
compat/mingw.h
+6
@@ -32,7 +32,9 @@ typedef int socklen_t;
32 #define WEXITSTATUS(x) ((x) & 0xff)
33 #define WTERMSIG(x) SIGTERM
34
35 +#ifndef EWOULDBLOCK
36 #define EWOULDBLOCK EAGAIN
37 +#endif
38 #define SHUT_WR SD_SEND
39
40 #define SIGHUP 1
@@ -46,8 +48,12 @@ typedef int socklen_t;
48 #define F_SETFD 2
49 #define FD_CLOEXEC 0x1
50
51 +#ifndef EAFNOSUPPORT
52 #define EAFNOSUPPORT WSAEAFNOSUPPORT
53 +#endif
54 +#ifndef ECONNABORTED
55 #define ECONNABORTED WSAECONNABORTED
56 +#endif
57
58 struct passwd {
59 char *pw_name;