From fab60274800efba101b3f08a297639d14ecbf840 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 21 Jul 2016 22:59:06 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- compat/mingw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compat') diff --git a/compat/mingw.h b/compat/mingw.h index c008694639..7489d2980e 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -73,6 +73,9 @@ typedef int pid_t; #ifndef ECONNABORTED #define ECONNABORTED WSAECONNABORTED #endif +#ifndef ENOTSOCK +#define ENOTSOCK WSAENOTSOCK +#endif struct passwd { char *pw_name; -- cgit v1.2.3