diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-29 19:01:59 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-03-04 10:50:39 +0200 |
commit | ce489769500e31cb9734972ebbda39f81c9bd60d (patch) | |
tree | 7d9da98e820298f431f8b3b5e1cc93da29e51a6a | |
parent | 5bcece537e2be12fd13ea85a636ba2e28c66c256 (diff) |
mingw: workaround weird openssl build failure
If X509_NAME isn't undefined before including x509v3.h, very
weird compilation error occurs. It seems to be caused by duplicate
definitions for this symbols coming from wincrypto.h
-rw-r--r-- | ssl_verify.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl_verify.h b/ssl_verify.h index b8306f3..067762b 100644 --- a/ssl_verify.h +++ b/ssl_verify.h @@ -29,6 +29,7 @@ #include <openssl/x509.h> #include <openssl/ssl.h> #include <openssl/err.h> +#undef X509_NAME #include <openssl/x509v3.h> #ifdef __cplusplus |