diff mbox series

[uclibc-ng-devel] allow to use <sys/ucontext.h>

Message ID ZpfXJXl1UFGeNgDs@waldemar-brodkorb.de
State Accepted
Headers show
Series [uclibc-ng-devel] allow to use <sys/ucontext.h> | expand

Commit Message

Waldemar Brodkorb July 17, 2024, 2:37 p.m. UTC
For architectures without ucontext implementation it is possible
to use libucontext with this small adaptation.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 include/ucontext.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/include/ucontext.h b/include/ucontext.h
index 4ce114ef1..76b4f375e 100644
--- a/include/ucontext.h
+++ b/include/ucontext.h
@@ -23,11 +23,11 @@ 
 
 #include <features.h>
 
-#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
-
 /* Get machine dependent definition of data structures.  */
 #include <sys/ucontext.h>
 
+#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
+
 __BEGIN_DECLS
 
 /* Get user context and store it in variable pointed to by UCP.  */