summaryrefslogtreecommitdiffstats
path: root/package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch
diff options
context:
space:
mode:
authorAdam Duskett <aduskett@codeblue.com>2018-01-14 14:56:44 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-15 23:18:00 +0100
commite378e8d33e70a770420c85b7db58b5b17eb535fb (patch)
tree7858346163a6906eb383488917035cbe30e1661b /package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch
parentf32fa207bd4a1cdb91e35550e4f96b4f556ce7cd (diff)
downloadbuildroot-e378e8d33e70a770420c85b7db58b5b17eb535fb.tar.gz
buildroot-e378e8d33e70a770420c85b7db58b5b17eb535fb.zip
libcpprestsdk: new package
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services. This package is licensed under the MIT package and depends on BOOST and OpenSSL/LibreSSL. Signed-off-by: Adam Duskett <aduskett@codeblue.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch')
-rw-r--r--package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch b/package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch
new file mode 100644
index 0000000000..12f049bf7b
--- /dev/null
+++ b/package/libcpprestsdk/0002-include-sys-time-for-struct-timeval.patch
@@ -0,0 +1,28 @@
+From 25453f9c186cf441881b06bc5503d979acb0ab75 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <aduskett@gmail.com>
+Date: Mon, 23 Oct 2017 09:38:11 -0400
+Subject: [PATCH] Include sys/time.h for struct timeval
+
+This is needed with musl.
+
+Upstream-Status: Accepted
+Signed-off-by: Adam Duskett <aduskett@gmail.com>
+---
+ Release/include/cpprest/asyncrt_utils.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Release/include/cpprest/asyncrt_utils.h b/Release/include/cpprest/asyncrt_utils.h
+index 8faa2dc..aab87a5 100644
+--- a/Release/include/cpprest/asyncrt_utils.h
++++ b/Release/include/cpprest/asyncrt_utils.h
+@@ -28,6 +28,7 @@
+ #endif
+
+ #ifndef _WIN32
++#include <sys/time.h>
+ #include <boost/algorithm/string.hpp>
+ #if !defined(ANDROID) && !defined(__ANDROID__) && defined(HAVE_XLOCALE_H) // CodePlex 269
+ /* Systems using glibc: xlocale.h has been removed from glibc 2.26
+--
+2.13.6
+
OpenPOWER on IntegriCloud