[PATCH gnupg] agent: Fix build on Cygwin.

Collin Funk collin.funk1 at gmail.com
Tue May 27 06:43:21 CEST 2025


* agent/command-ssh.c (start_command_handler_ssh): Don't cast to SOCKET
if HAVE_W32_SYSTEM is not defined.

--

GnuPG-bug-id: 7667
Signed-off-by: Collin Funk <collin.funk1 at gmail.com>
---
 agent/command-ssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index 8e812a643..6b872f1fa 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -3958,7 +3958,7 @@ start_command_handler_ssh (ctrl_t ctrl, gnupg_fd_t sock_client)
   es_syshd_t syshd;
 
   syshd.type = ES_SYSHD_SOCK;
-#ifdef HAVE_SOCKET
+#if defined(HAVE_SOCKET) && defined(HAVE_W32_SYSTEM)
   syshd.u.sock = (SOCKET)sock_client;
 #else
   syshd.u.sock = sock_client;
-- 
2.49.0




More information about the Gnupg-devel mailing list