0002-include-sys-time-for-struct-timeval.patch 885 B

12345678910111213141516171819202122232425262728
  1. From 25453f9c186cf441881b06bc5503d979acb0ab75 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Mon, 23 Oct 2017 09:38:11 -0400
  4. Subject: [PATCH] Include sys/time.h for struct timeval
  5. This is needed with musl.
  6. Upstream-Status: Accepted
  7. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  8. ---
  9. Release/include/cpprest/asyncrt_utils.h | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/Release/include/cpprest/asyncrt_utils.h b/Release/include/cpprest/asyncrt_utils.h
  12. index 8faa2dc..aab87a5 100644
  13. --- a/Release/include/cpprest/asyncrt_utils.h
  14. +++ b/Release/include/cpprest/asyncrt_utils.h
  15. @@ -28,6 +28,7 @@
  16. #endif
  17. #ifndef _WIN32
  18. +#include <sys/time.h>
  19. #include <boost/algorithm/string.hpp>
  20. #if !defined(ANDROID) && !defined(__ANDROID__) && defined(HAVE_XLOCALE_H) // CodePlex 269
  21. /* Systems using glibc: xlocale.h has been removed from glibc 2.26
  22. --
  23. 2.13.6