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 | 735f8e2837ac30e56efc45112841b3c71bcc85ac (patch) | |
tree | c150b45e1335acdc236aa15a30175d71a3bf96a6 /common | |
parent | 0f94e897b5226d91380f9f4838e0acb47d9b2219 (diff) | |
download | spice-735f8e2837ac30e56efc45112841b3c71bcc85ac.tar.gz spice-735f8e2837ac30e56efc45112841b3c71bcc85ac.tar.xz spice-735f8e2837ac30e56efc45112841b3c71bcc85ac.zip |
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
Diffstat (limited to 'common')
-rw-r--r-- | common/ssl_verify.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/ssl_verify.h b/common/ssl_verify.h index b8306f31..067762b4 100644 --- a/common/ssl_verify.h +++ b/common/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 |