aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c2
1 files changed, 1 insertions, 1 deletions
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;