From: Johannes Sixt Date: Thu, 21 Jul 2016 20:59:06 +0000 (+0200) Subject: Windows: add missing definition of ENOTSOCK X-Git-Tag: v2.9.3~38^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fab60274800efba101b3f08a297639d14ecbf840?ds=inline;hp=--cc 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 --- fab60274800efba101b3f08a297639d14ecbf840 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;