From: Adam Tkac Date: Wed, 9 Feb 2011 16:06:16 +0000 (+0000) Subject: [Bugfix] Fix Windows build, recently added GNUTLS compat code broke it. X-Git-Tag: v1.0.90~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d007ececa0d360bf8107db21d86db6930f03e766;p=tigervnc.git [Bugfix] Fix Windows build, recently added GNUTLS compat code broke it. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4279 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/os/tls.cxx b/common/os/tls.cxx index cd67ce78..c0929968 100644 --- a/common/os/tls.cxx +++ b/common/os/tls.cxx @@ -32,7 +32,7 @@ using namespace std; -#ifdef HAVE_GNUTLS +#if defined(HAVE_GNUTLS) && !defined(WIN32) #include #include diff --git a/common/os/tls.h b/common/os/tls.h index 6dd0f324..8980197c 100644 --- a/common/os/tls.h +++ b/common/os/tls.h @@ -23,7 +23,11 @@ #include #endif -#ifdef HAVE_GNUTLS +/* + * Windows builds are build against fairly new GNUTLS, ignore compatibility + * code. + */ +#if defined(HAVE_GNUTLS) && !defined(WIN32) #include #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