aboutsummaryrefslogtreecommitdiffstats
path: root/common/dynload.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-12-17 04:28:42 +0000
committerNIIBE Yutaka <[email protected]>2021-12-17 04:32:14 +0000
commite08225030dfb2090e756d26575f38c371e5a81cf (patch)
tree3b6284bdd8547907a10a6c571112830f99ae0720 /common/dynload.h
parentgpg: Emit compatible Ed25519 signature. (diff)
downloadgnupg-e08225030dfb2090e756d26575f38c371e5a81cf.tar.gz
gnupg-e08225030dfb2090e756d26575f38c371e5a81cf.zip
w32: Prepare for the case gcrypt.h will not include winsock2.h.
* common/dynload.h: Include specific headers only. * common/exechelp-w32.c: Include <windows.h>. * 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 <[email protected]>
Diffstat (limited to 'common/dynload.h')
-rw-r--r--common/dynload.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/dynload.h b/common/dynload.h
index 54a47b219..f6ec8753b 100644
--- a/common/dynload.h
+++ b/common/dynload.h
@@ -34,7 +34,9 @@
#ifndef __MINGW32__
# include <dlfcn.h>
#else
-# include <windows.h>
+# include <errhandlingapi.h>
+# include <handleapi.h>
+# include <libloaderapi.h>
# include "utf8conv.h"
# include "mischelp.h"
# define RTLD_LAZY 0