git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH ew/daemon-socket-keepalive] Windows: add missing definition of ENOTSOCK

From
Johannes Sixt <j6t@kdbg.org>
Date
Jul 21, 2016, 20:59 UTC
Message-ID
<28dbe3b0-7a16-1b87-3d59-b8c981fead7c@kdbg.org>

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
Next: Johannes Schindelin
Message 1 of 6 in “Windows: add missing definition of ENOTSOCK”
  1. Windows: add missing definition of ENOTSOCKJohannes Sixt, Jul 21, 2016
  2. Johannes SchindelinJul 22, 2016
  3. Junio C HamanoJul 22, 2016
  4. Johannes SchindelinJul 23, 2016
  5. Windows: add missing definition of ENOTSOCKJohannes Sixt, Jul 23, 2016
  6. Eric WongJul 22, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.