From df7997021e0f7ad99efa7f015b5c34f289538cfb Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 28 Apr 2010 15:45:53 +0000 Subject: [Bugfix] Compile VeNCrypt extension only when gnutls is enabled and available. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4049 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/SSecurityTLS.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/rfb/SSecurityTLS.cxx') diff --git a/common/rfb/SSecurityTLS.cxx b/common/rfb/SSecurityTLS.cxx index f54158e7..52fc9cb8 100644 --- a/common/rfb/SSecurityTLS.cxx +++ b/common/rfb/SSecurityTLS.cxx @@ -23,7 +23,9 @@ #include #endif -#ifdef HAVE_GNUTLS +#ifndef HAVE_GNUTLS +#error "This source should not be compiled without HAVE_GNUTLS defined" +#endif #include #include @@ -79,4 +81,3 @@ void SSecurityTLS::setParams(gnutls_session session) } -#endif /* HAVE_GNUTLS */ -- cgit v1.2.3