0004-workaround-musl-bug.patch 933 B

1234567891011121314151617181920212223242526
  1. From 0506e46640989e1f919388ad36890bd6063cd43a Mon Sep 17 00:00:00 2001
  2. From: Zach van Rijn <me@zv.io>
  3. Date: Sat, 26 Aug 2017 01:32:56 -0400
  4. Subject: [PATCH] explicitly include <string.h> for memset()
  5. [Thomas: taken from
  6. https://github.com/boostorg/fiber/pull/142/commits/0506e46640989e1f919388ad36890bd6063cd43a. It
  7. is not going to be applied upstream because the actual bug is in musl,
  8. but it's a good enough workaround for now.]
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. ---
  11. libs/fiber/src/numa/linux/pin_thread.cpp | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/libs/fiber/src/numa/linux/pin_thread.cpp b/libs/fiber/src/numa/linux/pin_thread.cpp
  14. index ae696be3..e9b3c423 100644
  15. --- a/libs/fiber/src/numa/linux/pin_thread.cpp
  16. +++ b/libs/fiber/src/numa/linux/pin_thread.cpp
  17. @@ -9,6 +9,7 @@
  18. extern "C" {
  19. #include <pthread.h>
  20. #include <sched.h>
  21. +#include <string.h>
  22. }
  23. #include <system_error>