gtls: fix build failure by including nettle-specific headers
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2012 13:04:25 +0000 (15:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2012 13:04:25 +0000 (15:04 +0200)
Bug: http://curl.haxx.se/bug/view.cgi?id=3554668
Reported by: Anthony G. Basile

lib/gtls.c

index d981ef1..c750a6f 100644 (file)
 
 #include <gnutls/gnutls.h>
 #include <gnutls/x509.h>
-#ifndef USE_GNUTLS_NETTLE
+#ifdef USE_GNUTLS_NETTLE
+#include <gnutls/crypto.h>
+#include <nettle/md5.h>
+#else
 #include <gcrypt.h>
 #endif