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

[PATCH] Win32: Fix building with NO_UNIX_SOCKETS

From
Mike Hommey <mh@glandium.org>
Date
May 3, 2024, 09:14 UTC
Message-ID
<20240503091427.2808390-1-mh@glandium.org>
After 2406bf5fc5 it fails with:
compat/mingw.c:4160:5: error: no previous prototype for function 'mingw_have_unix_sockets' [-Werror,-Wmissing-prototypes]
   4160 | int mingw_have_unix_sockets(void)
        |     ^
because the prototype is behind `ifndef NO_UNIX_SOCKETS`
Signed-off-by: Mike Hommey <mh@glandium.org>
---
 compat/mingw.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/compat/mingw.c b/compat/mingw.c
index 4876344b5b..6b06ea540f 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -3159,6 +3159,7 @@ int uname(struct utsname *buf)
 	return 0;
 }
 
+#ifndef NO_UNIX_SOCKETS
 int mingw_have_unix_sockets(void)
 {
 	SC_HANDLE scm, srvc;
@@ -3177,3 +3178,4 @@ int mingw_have_unix_sockets(void)
 	}
 	return ret;
 }
+#endif
-- 
2.45.0.1.ge6f3e402ce
Next: Johannes Schindelin
Message 1 of 3 in “Win32: Fix building with NO_UNIX_SOCKETS”
  1. Win32: Fix building with NO_UNIX_SOCKETSMike Hommey, May 3, 2024
  2. Johannes SchindelinMay 3, 2024
  3. Junio C HamanoMay 3, 2024

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.