summaryrefslogtreecommitdiffstats
path: root/common/rfb/SSecurityTLS.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-04-28 15:45:53 +0000
committerAdam Tkac <atkac@redhat.com>2010-04-28 15:45:53 +0000
commitdf7997021e0f7ad99efa7f015b5c34f289538cfb (patch)
treede0a977c008c21cd734d86938501322a03c86e14 /common/rfb/SSecurityTLS.h
parent64add650aa34a7e9f335a32994575036bb0e77a5 (diff)
downloadtigervnc-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/SSecurityTLS.h')
-rw-r--r--common/rfb/SSecurityTLS.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/rfb/SSecurityTLS.h b/common/rfb/SSecurityTLS.h
index f137f31b..253ae84d 100644
--- a/common/rfb/SSecurityTLS.h
+++ b/common/rfb/SSecurityTLS.h
@@ -26,7 +26,9 @@
#include <config.h>
#endif
-#ifdef HAVE_GNUTLS
+#ifndef HAVE_GNUTLS
+#error "This header should not be included without HAVE_GNUTLS defined"
+#endif
#include <rfb/SSecurityTLSBase.h>
#include <rfb/SSecurityVeNCrypt.h>
@@ -50,6 +52,5 @@ namespace rfb {
};
}
-#endif /* HAVE_GNUTLS */
#endif /* __S_SECURITY_TLS_H__ */