Allow building with the 32 bit mingw-w64 toolchain.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2012 17:10:30 +0000 (18:10 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2012 17:10:30 +0000 (18:10 +0100)
commit3a22b622c89ae87c4d557ab71c619803a4fed8ed
tree3a945df495466903bdbfa18483664b66b1927822
parent02f282368e6e68ac1c8dffcfd6e772ec4ff356f8
Allow building with the 32 bit mingw-w64 toolchain.

* scripts/autogen.sh <--build-w32>: Support i686-w64-mingw32 and use
it by default if installed.
* keyserver/gpgkeys_ldap.c (my_ldap_start_tls_s): Define macro
depending on compiler version.
(main): Use new macro.
* util/miscutil.c [!HAVE_TIMEGM]: Add prototype for the timegm
autoconf replacement function.
--

It seems that the LDAP keyserver helper build with the old mingw32
toolchain never worked correctly for LDAPS.  The prototype there for
ldap_start_tls_s is plainly wrong for Windows.  Anyway I included
special support so not to break building with the old compiler.
keyserver/gpgkeys_ldap.c
scripts/autogen.sh
util/miscutil.c