From e08225030dfb2090e756d26575f38c371e5a81cf Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 17 Dec 2021 13:28:42 +0900 Subject: w32: Prepare for the case gcrypt.h will not include winsock2.h. * common/dynload.h: Include specific headers only. * common/exechelp-w32.c: Include . * common/gettime.c: Likewise. * common/utf8conv.c: Likewise. * tests/gpgscm/ffi.c: Likewise. * tools/gpgconf.c: Likewise. * configure.ac: Check winsock2.h, removing gl_HEADER_SYS_SOCKET. -- GnuPG-bug-id: 5731 Signed-off-by: NIIBE Yutaka --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fea504e74..313b11358 100644 --- a/configure.ac +++ b/configure.ac @@ -806,6 +806,7 @@ if test "$have_w32_system" = yes; then if test "$have_w32ce_system" = yes; then AC_DEFINE(HAVE_W32CE_SYSTEM,1,[Defined if we run on WindowsCE]) fi + AC_CHECK_HEADERS([winsock2.h]) fi AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes) AM_CONDITIONAL(HAVE_W32CE_SYSTEM, test "$have_w32ce_system" = yes) @@ -1385,7 +1386,6 @@ AC_CHECK_DECLS([sys_siglist],[],[],[#include ]) -gl_HEADER_SYS_SOCKET gl_TYPE_SOCKLEN_T AC_SEARCH_LIBS([inet_addr], [nsl]) -- cgit v1.2.3