aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagna.gianfranco@gmail.com>2018-08-06 10:29:17 +0200
committerKhem Raj <raj.khem@gmail.com>2018-08-08 12:04:13 -0700
commit47d2bfaff1336ac47ca187bbeade88693a6a79dd (patch)
tree20642c0fd3d923f068e97ce7a4ce1b3e7086f928 /meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch
parent19b47730e079aacceb04fbb6d77247158d90f87c (diff)
downloadmeta-openembedded-contrib-47d2bfaff1336ac47ca187bbeade88693a6a79dd.tar.gz
cpprest: update to new 2.10.3 release, simplify recipe now that it has a cmake file in the root location
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch')
-rw-r--r--meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch
new file mode 100644
index 0000000000..9fcffbfed2
--- /dev/null
+++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch
@@ -0,0 +1,25 @@
+From 3d8caad3f459d8b2136c5bc9be7fdec53e5d777d Mon Sep 17 00:00:00 2001
+From: Wu Yongwei <wuyongwei@gmail.com>
+Date: Tue, 10 Apr 2018 11:29:12 +0800
+Subject: [PATCH] Fix a build problem on Clang.
+
+AND_CAPTURE_MEMBER_FUNCTION_POINTERS workaround had a check for GCC,
+but did not exclude Clang. Clang has a fake GCC version of 4.2, thus
+caused problems.
+---
+ Release/src/http/client/http_client_asio.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Release/src/http/client/http_client_asio.cpp b/Release/src/http/client/http_client_asio.cpp
+index 4ba3e085..fca4bb5b 100644
+--- a/Release/src/http/client/http_client_asio.cpp
++++ b/Release/src/http/client/http_client_asio.cpp
+@@ -47,7 +47,7 @@
+ #include <unordered_set>
+ #include <memory>
+
+-#if defined(__GNUC__)
++#if defined(__GNUC__) && !defined(__clang__)
+
+ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
+ #define AND_CAPTURE_MEMBER_FUNCTION_POINTERS