blob: 61a7ac0a60332cecd3ba81ce505c6638cd47ba1a [file] [log] [blame]
Brad Bishop779d0ac2019-09-27 08:23:48 -04001From b84ee1fa41c53c43aa7ed1583c36af5cb7c77a0f Mon Sep 17 00:00:00 2001
2From: Christian Grothoff <christian@grothoff.org>
3Date: Fri, 2 Aug 2019 15:43:44 +0200
4Subject: trying to fix #5806
5
6Upstream-Status: Backport from 0.9.67 [https://git.gnunet.org/libmicrohttpd.git/commit/?id=b84ee1fa41c53c43aa7ed1583c36af5cb7c77a0f]
7
8---
9 src/microhttpd/daemon.c | 7 ++++++-
10 1 file changed, 6 insertions(+), 1 deletion(-)
11
12diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
13index bf01ba9b..a8fc98c6 100644
14--- a/src/microhttpd/daemon.c
15+++ b/src/microhttpd/daemon.c
16@@ -2536,7 +2536,12 @@ internal_add_connection (struct MHD_Daemon *daemon,
17 else
18 {
19 #ifdef HTTPS_SUPPORT
20- gnutls_init_flags_t flags;
21+#if (GNUTLS_VERSION_NUMBER+0 >= 0x030500)
22+ gnutls_init_flags_t
23+#else
24+ unsigned int
25+#endif
26+ flags;
27
28 flags = GNUTLS_SERVER;
29 #if (GNUTLS_VERSION_NUMBER+0 >= 0x030402)
30--
31cgit v1.2.1
32