git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ew/daemon-socket-keepalive] Windows: add missing definition of ENOTSOCK
@ 2016-07-21 20:59 Johannes Sixt
  2016-07-22  8:21 ` Johannes Schindelin
  2016-07-22 19:31 ` [PATCH " Eric Wong
  0 siblings, 2 replies; 6+ messages in thread
From: Johannes Sixt @ 2016-07-21 20:59 UTC (permalink / raw)
  To: Git Mailing List; +Cc: git-for-windows

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>
---
  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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-23  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 20:59 [PATCH ew/daemon-socket-keepalive] Windows: add missing definition of ENOTSOCK Johannes Sixt
2016-07-22  8:21 ` Johannes Schindelin
2016-07-22 19:28   ` Junio C Hamano
2016-07-23  8:02     ` Johannes Schindelin
2016-07-23  8:39       ` [PATCH v2 " Johannes Sixt
2016-07-22 19:31 ` [PATCH " Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).