[gtk-vnc] Assume we can always get GNUTLS version number



commit ce46ef75a87c48353cd4b1cc68279cf121bfbb57
Author: Daniel P. Berrange <berrange redhat com>
Date:   Tue Aug 16 10:26:14 2016 +0100

    Assume we can always get GNUTLS version number
    
    Signed-off-by: Daniel P. Berrange <berrange redhat com>

 src/vncconnection.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 52dc6cb..ab21d5d 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -85,8 +85,15 @@
  *
  *   - gnutls < 2.12
  */
+#ifndef GNUTLS_VERSION_NUMBER
+#ifndef LIBGNUTLS_VERSION_NUMBER
+#error "GNUTLS >= 2.2.0 required to build GTK-VNC"
+#else
+#define GNUTLS_VERSION_NUMBER LIBGNUTLS_VERSION_NUMBER
+#endif
+#endif
+
 #if ((!defined(HAVE_GNUTLS_GCRYPT) ||            \
-      !defined(GNUTLS_VERSION_NUMBER) ||         \
       (GNUTLS_VERSION_NUMBER < 0x020c00)) &&     \
      (!defined(GCRYPT_VERSION_NUMBER) ||         \
       (GCRYPT_VERSION_NUMBER < 0x010600)))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]