From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9D7371395E2 for ; Sun, 13 Nov 2016 13:21:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8FC7E0B02; Sun, 13 Nov 2016 13:21:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E2A1E0B02 for ; Sun, 13 Nov 2016 13:21:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3791D3413B7 for ; Sun, 13 Nov 2016 13:21:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B78724AF for ; Sun, 13 Nov 2016 13:21:34 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1479043292.9b38608dcdd87371cf27c20be9db126f5ebea06c.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/curl/, net-misc/curl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/curl/curl-7.51.0.ebuild net-misc/curl/files/curl-fix-mbedtls.patch X-VCS-Directories: net-misc/curl/ net-misc/curl/files/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 9b38608dcdd87371cf27c20be9db126f5ebea06c X-VCS-Branch: master Date: Sun, 13 Nov 2016 13:21:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1389d6ac-0657-4efc-af24-943e0cca680d X-Archives-Hash: ef03a2c127c246d9ef89169c0ca748e8 commit: 9b38608dcdd87371cf27c20be9db126f5ebea06c Author: Anthony G. Basile gentoo org> AuthorDate: Sun Nov 13 13:16:28 2016 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Nov 13 13:21:32 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b38608d 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