From 9ea3a6e150dfc822ba1565f649b634848597d2d9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 Nov 2016 11:13:16 +0100 Subject: mbedtls: fix build with mbedtls versions < 2.4.0 Regression added in 62a8095e714 Reported-by: Tony Kelman Discussed in #1087 --- lib/vtls/mbedtls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 24249dd65..9f29ff055 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -31,11 +31,15 @@ #ifdef USE_MBEDTLS +#include +#if MBEDTLS_VERSION_NUMBER >= 0x02040000 #include +#else +#include +#endif #include #include #include -#include #include #include -- cgit v1.2.3