aboutsummaryrefslogtreecommitdiffstats
path: root/common/dynload.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-02-15 05:40:33 +0000
committerNIIBE Yutaka <[email protected]>2024-02-15 05:40:33 +0000
commit874918ab915263b5e3de5ad6296045d936164542 (patch)
treecd44183c53ecf12789433e8800f5d604bdc44213 /common/dynload.h
parentdirmngr:w32: Add include files. (diff)
downloadgnupg-874918ab915263b5e3de5ad6296045d936164542.tar.gz
gnupg-874918ab915263b5e3de5ad6296045d936164542.zip
common,dirmngr:w32: Add include files.
* common/dynload.h: Include windows.h. Don't define RTLD_LAZY, if already defined. * common/init.c: Include wctype.h. * dirmngr/certcache.c: Include wincrypt.h. * dirmngr/dns-stuff.c: Include ws2tcpip.h. -- GnuPG-bug-id: 5894 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/dynload.h')
-rw-r--r--common/dynload.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/dynload.h b/common/dynload.h
index 6ac7b4e17..af3906c81 100644
--- a/common/dynload.h
+++ b/common/dynload.h
@@ -34,12 +34,15 @@
#ifndef __MINGW32__
# include <dlfcn.h>
#else
-# include <errhandlingapi.h>
-# include <handleapi.h>
-# include <libloaderapi.h>
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
+# include <windows.h>
# include "utf8conv.h"
# include "mischelp.h"
-# define RTLD_LAZY 0
+# ifndef RTLD_LAZY
+# define RTLD_LAZY 0
+# endif
static inline void *
dlopen (const char *name, int flag)