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 --- common/gettime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/gettime.c') diff --git a/common/gettime.c b/common/gettime.c index 03c152fdb..cbf24364e 100644 --- a/common/gettime.c +++ b/common/gettime.c @@ -42,6 +42,10 @@ #include "i18n.h" #include "gettime.h" +#ifdef HAVE_W32_SYSTEM +#include +#endif + #ifdef HAVE_UNSIGNED_TIME_T # define IS_INVALID_TIME_T(a) ((a) == (time_t)(-1)) #else -- cgit v1.2.3