Windows: add missing definition of ENOTSOCK
The previous commit introduced the first use of ENOTSOCK. This macro is not available on Windows. Define it as WSAENOTSOCK because that is the corresponding error value reported by the Windows versions of socket functions. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Jul 21, 2016 at 22:59 UTC
fab60274800efba101b3f08a297639d14ecbf840
1 file changed
+3
compat/mingw.h
+3
@@ -73,6 +73,9 @@ typedef int pid_t;
73
#ifndef ECONNABORTED
74
#define ECONNABORTED WSAECONNABORTED
75
#endif
76
+#ifndef ENOTSOCK
77
+#define ENOTSOCK WSAENOTSOCK
78
+#endif
79
80
struct passwd {
81
char *pw_name;