summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-07-18 07:05:13 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-07-18 07:05:13 +0200
commitae188a3357cf9c90967eabdd304782dea40cd1a1 (patch)
tree71137bb70778572fcff54e3585171bb83908ea8a /configure.ac
parentdirmngr,kbk,tools: Fix type casting. (diff)
downloadgnupg2-ae188a3357cf9c90967eabdd304782dea40cd1a1.tar.xz
gnupg2-ae188a3357cf9c90967eabdd304782dea40cd1a1.zip
agent,build,w32: Fix use of SOCKET.
* configure.ac (HAVE_SOCKET): Detect SOCKET type. * agent/command-ssh.c [HAVE_SOCKET] (start_command_handler_ssh): Use SOCKET to cast. -- GnuPG-bug-id: 6508 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fe7e82108..57bcdac4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1385,6 +1385,8 @@ AC_CHECK_SIZEOF(time_t,,[[
]])
GNUPG_TIME_T_UNSIGNED
+# Check SOCKET type for Windows.
+AC_CHECK_TYPES([SOCKET], [], [], [[#include "winsock2.h"]])
if test "$ac_cv_sizeof_unsigned_short" = "0" \
|| test "$ac_cv_sizeof_unsigned_int" = "0" \