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/SSecurityPlain.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/rfb/SSecurityPlain.h') diff --git a/common/rfb/SSecurityPlain.h b/common/rfb/SSecurityPlain.h index 610ef5bd..ecdd618b 100644 --- a/common/rfb/SSecurityPlain.h +++ b/common/rfb/SSecurityPlain.h @@ -20,6 +20,14 @@ #ifndef __RFB_SSECURITYPLAIN_H__ #define __RFB_SSECURITYPLAIN_H__ +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef HAVE_GNUTLS +#error "This header should not be included without HAVE_GNUTLS defined" +#endif + #include #include #include -- cgit v1.2.3