]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Fix Windows build, recently added GNUTLS compat code broke it.
authorAdam Tkac <atkac@redhat.com>
Wed, 9 Feb 2011 16:06:16 +0000 (16:06 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 9 Feb 2011 16:06:16 +0000 (16:06 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4279 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/os/tls.cxx
common/os/tls.h

index cd67ce78287a06cb69ff646c99d5ed9034f2e90a..c09299682d315af47e3f515cf20a6fba3a7997ee 100644 (file)
@@ -32,7 +32,7 @@
 
 using namespace std;
 
-#ifdef HAVE_GNUTLS
+#if defined(HAVE_GNUTLS) && !defined(WIN32)
 #include <gnutls/gnutls.h>
 #include <gnutls/x509.h>
 
index 6dd0f32475b3abe49910e31d6c54db3c92ac7cc5..8980197c079a6afce678a349a7e23fd644ed1e31 100644 (file)
 #include <config.h>
 #endif
 
-#ifdef HAVE_GNUTLS
+/*
+ * Windows builds are build against fairly new GNUTLS, ignore compatibility
+ * code.
+ */
+#if defined(HAVE_GNUTLS) && !defined(WIN32)
 #include <gnutls/gnutls.h>
 
 #ifndef HAVE_GNUTLS_DATUM_T
@@ -40,9 +44,6 @@ typedef gnutls_sign_algorithm gnutls_sign_algorithm_t;
 #endif
 
 #ifndef HAVE_GNUTLS_X509_CRT_PRINT
-#ifdef WIN32
-#error "Please install more recent GNUTLS with gnutls_x509_crt_print() function"
-#endif
 
 typedef enum {
        GNUTLS_CRT_PRINT_ONELINE = 1