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. For details, see https://msdn.microsoft.com/en-us/library/windows/desktop/ms740476.aspx Signed-off-by: Johannes Sixt <j6t@xxxxxxxx> Acked-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx> --- Same patch text, but the commit message is amended, just in case it's easier for you to apply a new patch than to amend a queued one. Thanks everybody. compat/mingw.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/mingw.h b/compat/mingw.h index 233933e..95e128f 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; -- 2.9.0.443.ga8520ad -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html