diff options
author | Adam Tkac <atkac@redhat.com> | 2010-04-28 15:45:53 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-04-28 15:45:53 +0000 |
commit | df7997021e0f7ad99efa7f015b5c34f289538cfb (patch) | |
tree | de0a977c008c21cd734d86938501322a03c86e14 /common/rfb/SSecurityVeNCrypt.h | |
parent | 64add650aa34a7e9f335a32994575036bb0e77a5 (diff) | |
download | tigervnc-df7997021e0f7ad99efa7f015b5c34f289538cfb.tar.gz tigervnc-df7997021e0f7ad99efa7f015b5c34f289538cfb.zip |
[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
Diffstat (limited to 'common/rfb/SSecurityVeNCrypt.h')
-rw-r--r-- | common/rfb/SSecurityVeNCrypt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/SSecurityVeNCrypt.h b/common/rfb/SSecurityVeNCrypt.h index 526dad18..bedb6e22 100644 --- a/common/rfb/SSecurityVeNCrypt.h +++ b/common/rfb/SSecurityVeNCrypt.h @@ -25,6 +25,14 @@ #ifndef __SSECURITYVENCRYPT_H__
#define __SSECURITYVENCRYPT_H__
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifndef HAVE_GNUTLS
+#error "This header should not be included without HAVE_GNUTLS defined"
+#endif
+
#include <rfb/SSecurityStack.h>
#include <rfb/SConnection.h>
|