/[gentoo-x86]/net-misc/curl/files/curl-7.27.0-fix-nettle-include.patch
Gentoo

Contents of /net-misc/curl/files/curl-7.27.0-fix-nettle-include.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 7 12:38:58 2012 UTC (3 years ago) by blueness
Branch: MAIN
Fix build with metalink + gnutls, bug 428592.  Cleaned out unused patch files.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 From 986c7949c0638bebb99bd08d63216433254c2185 Mon Sep 17 00:00:00 2001
2 From: Daniel Stenberg <daniel@haxx.se>
3 Date: Mon, 6 Aug 2012 15:04:25 +0200
4 Subject: [PATCH] gtls: fix build failure by including nettle-specific headers
5
6 Bug: http://curl.haxx.se/bug/view.cgi?id=3554668
7 Reported by: Anthony G. Basile
8 ---
9 lib/gtls.c | 5 ++++-
10 1 file changed, 4 insertions(+), 1 deletion(-)
11
12 diff --git a/lib/gtls.c b/lib/gtls.c
13 index d981ef1..c750a6f 100644
14 --- a/lib/gtls.c
15 +++ b/lib/gtls.c
16 @@ -34,7 +34,10 @@
17
18 #include <gnutls/gnutls.h>
19 #include <gnutls/x509.h>
20 -#ifndef USE_GNUTLS_NETTLE
21 +#ifdef USE_GNUTLS_NETTLE
22 +#include <gnutls/crypto.h>
23 +#include <nettle/md5.h>
24 +#else
25 #include <gcrypt.h>
26 #endif
27
28 --
29 1.7.10.4

  ViewVC Help
Powered by ViewVC 1.1.20