aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-02-26 16:06:39 +0000
committerWerner Koch <[email protected]>2013-02-26 16:10:45 +0000
commitcdae524b282ef0ea67c3880b3e0f852c84c351ce (patch)
tree71a8ab617cb314c510b2d778c6679a9e34b80f8b /src/util.h
parentImprove missing libgpg-error reporting in configure. (diff)
downloadgpgme-cdae524b282ef0ea67c3880b3e0f852c84c351ce.tar.gz
gpgme-cdae524b282ef0ea67c3880b3e0f852c84c351ce.zip
w32: Hacks for building with 32 bit mingw64.
* configure.ac (INSERT__TYPEDEFS_FOR_GPGME_H): Add hacks for 32 bit mingw64. * src/util.h [W32]: Include winsock2.h before windows to make mingw64 happy. * src/w32-util.c (_WIN32_IE): Need to use 5.1 for mingw64. -- It is not clear to me what mingw64 wants to achieve with their POSIX hacks. In particular the off64_t stuff looks quite strange given that Windows has a pretty stable API for close to 2 decades. Thus I can't say whether it will really work when build with that toolchain.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index cf18099a..db8dc397 100644
--- a/src/util.h
+++ b/src/util.h
@@ -26,6 +26,7 @@
# ifdef HAVE_W32CE_SYSTEM
# include "w32-ce.h"
# else
+# include "winsock2.h"
# include "windows.h"
# endif
#endif