From 903da45dde43836e35a295226c5b1efccd413c08 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 17 Jul 2024 15:41:40 +0200 Subject: allow to use For architectures without ucontext implementation it is possible to use libucontext with this small adaptation. --- include/ucontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 -#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__ - /* Get machine dependent definition of data structures. */ #include +#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__ + __BEGIN_DECLS /* Get user context and store it in variable pointed to by UCP. */ -- cgit v1.2.3