Juan José Santamaría Flecha <juanjo.santamaria@gmail.com> writes: > There is a comment in 'src/backend/libpq/be-secure-openssl.c' addressing > this issue, but I have to explicitly undefine X509_NAME. Please find > attached a patch for so.
Um ... why? Shouldn't the #undef in the OpenSSL headers take care of the problem?
After <openssl/ossl_typ.h> has been included, any inclusion of <wincrypt.h> will be troublesome. There is already something similar in 'contrib/sslinfo/sslinfo.c'. This shouldn't be a problem while defining WIN32_LEAN_AND_MEAN, but kerberos is directly including <wincrypt.h> in <win-mac.h>.