Allow building gpgkeys_ldap with the 32 bit mingw-w64 toolchain.
authorWerner Koch <wk@gnupg.org>
Tue, 23 Apr 2013 15:04:56 +0000 (17:04 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 23 Apr 2013 15:04:56 +0000 (17:04 +0200)
commita557a74615774b228dae14cf83a92ec26e2b03b5
tree82127c3a29c17228bee62f13900664efdd02124f
parentd6e37554d20a96a6bc85455626fff31157233080
Allow building gpgkeys_ldap with the 32 bit mingw-w64 toolchain.

* keyserver/gpgkeys_ldap.c (my_ldap_start_tls_s): Define macro
depending on compiler version.
(main): Use new macro.
--

It seems that the LDAP keyserver helper if build with the old mingw32
toolchain never worked correctly for LDAPS.  The prototype there for
ldap_start_tls_s is plainly wrong for Windows.  However, the fix here
has special support so not to break building with the old compiler.
keyserver/gpgkeys_ldap.c