From: Anthony G. Basile Date: Sun, 13 Nov 2016 13:16:28 +0000 (-0500) Subject: net-misc/curl: fix build with +Date: Fri Nov 4 11:13:16 2016 +0100 + + mbedtls: fix build with mbedtls versions < 2.4.0 + + Regression added in 62a8095e714 + + Reported-by: Tony Kelman + + Discussed in #1087 + +diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c +index 24249dd..9f29ff0 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