summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/curl/files/curl-7.20.0-fix-nettle-include.patch')
-rw-r--r--net-misc/curl/files/curl-7.20.0-fix-nettle-include.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-misc/curl/files/curl-7.20.0-fix-nettle-include.patch b/net-misc/curl/files/curl-7.20.0-fix-nettle-include.patch
new file mode 100644
index 000000000000..b0a81657fd89
--- /dev/null
+++ b/net-misc/curl/files/curl-7.20.0-fix-nettle-include.patch
@@ -0,0 +1,30 @@
+From 986c7949c0638bebb99bd08d63216433254c2185 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 6 Aug 2012 15:04:25 +0200
+Subject: [PATCH] gtls: fix build failure by including nettle-specific headers
+
+Bug: http://curl.haxx.se/bug/view.cgi?id=3554668
+Reported by: Anthony G. Basile
+---
+ lib/gtls.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/lib/gtls.c b/lib/gtls.c
+index d981ef1..c750a6f 100644
+--- a/lib/gtls.c
++++ b/lib/gtls.c
+@@ -34,7 +34,10 @@
+
+ #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
+
+--
+1.7.10.4
+