summaryrefslogtreecommitdiffstats
path: root/src/curl-1-fixes.patch
blob: 264c53d9f07fb72221f301d1cff3faa9b5cf9d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This file is part of MXE.
See index.html for further information.

From 29c2441e39372b34dfac348954385d2fecb361d1 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
(cherry picked from commit 986c7949c0638bebb99bd08d63216433254c2185)

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