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

[PATCH il/rfc-remote-fd-ext] Fix build on Windows

From
Johannes Sixt <j6t@kdbg.org>
Date
Aug 13, 2010, 22:09 UTC
Message-ID
<201008140009.19291.j6t@kdbg.org>

This adds the necessary #defines so that the programs can be built, but since the poll emulation is not extended to support POLLOUT and POLLNVAL, the resulting programs will most likely not function properly. (The test does not check them, yet.)

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 compat/mingw.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/compat/mingw.h b/compat/mingw.h
index 3b2477b..f27a7b6 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -23,6 +23,9 @@ typedef int pid_t;
 #define WEXITSTATUS(x) ((x) & 0xff)
 #define WTERMSIG(x) SIGTERM
 
+#define EWOULDBLOCK EAGAIN
+#define SHUT_WR SD_SEND
+
 #define SIGHUP 1
 #define SIGQUIT 3
 #define SIGKILL 9
@@ -50,6 +53,8 @@ struct pollfd {
 };
 #define POLLIN 1
 #define POLLHUP 2
+#define POLLOUT 4
+#define POLLNVAL 8
 #endif
 
 typedef void (__cdecl *sig_handler_t)(int);
-- 
1.7.1.402.gf1eeb
Next: Ilari Liusvaara
Message 1 of 3 in “Fix build on Windows”
  1. Fix build on WindowsJohannes Sixt, Aug 13, 2010
  2. Ilari LiusvaaraAug 14, 2010
  3. Johannes SixtAug 14, 2010

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.