[PATCH gnupg] agent: Fix build on Cygwin.

Collin Funk via Gnupg-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <c8f6f7cea60c841f3c06bbcdd2e3fbcb5fa825ab.1748320985.git.collin.funk1@gmail.com>
* 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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.