0001-allow-to-use-sys-ucontext.h.patch 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. From 903da45dde43836e35a295226c5b1efccd413c08 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Wed, 17 Jul 2024 15:41:40 +0200
  4. Subject: [PATCH] allow to use <sys/ucontext.h>
  5. For architectures without ucontext implementation it is possible
  6. to use libucontext with this small adaptation.
  7. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  8. Upstream: https://mailman.openadk.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/thread/MZCPGG56TL7SVOZY2L3AGHLREJ76BYZE/
  9. ---
  10. include/ucontext.h | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/include/ucontext.h b/include/ucontext.h
  13. index 4ce114ef1..76b4f375e 100644
  14. --- a/include/ucontext.h
  15. +++ b/include/ucontext.h
  16. @@ -23,11 +23,11 @@
  17. #include <features.h>
  18. -#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
  19. -
  20. /* Get machine dependent definition of data structures. */
  21. #include <sys/ucontext.h>
  22. +#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
  23. +
  24. __BEGIN_DECLS
  25. /* Get user context and store it in variable pointed to by UCP. */
  26. --
  27. 2.30.2