File riemann-c-client-1.6.1+gnutls3.1.diff of Package riemann-c-client

diff --git a/lib/riemann/client/tls-gnutls.c b/lib/riemann/client/tls-gnutls.c
index de22534..78c46c4 100644
--- a/lib/riemann/client/tls-gnutls.c
+++ b/lib/riemann/client/tls-gnutls.c
@@ -29,7 +29,7 @@
 #include <gnutls/gnutls.h>
 #include <gnutls/x509.h>
 
-#if GNUTLS_VERSION_MAJOR == 2
+#if GNUTLS_VERSION_MAJOR == 2 || (GNUTLS_VERSION_MAJOR == 3 && GNUTLS_VERSION_MINOR < 3)
 #include "riemann/client/tls-gnutls2.c"
 #else
 #include "riemann/client/tls-gnutls3.c"