[Spice-devel] [PATCH 6/6] mingw: workaround weird openssl build failure

Christophe Fergeau cfergeau at redhat.com
Wed Feb 29 10:01:59 PST 2012


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
---
 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 b8306f3..067762b 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
-- 
1.7.7.6



More information about the Spice-devel mailing list