summaryrefslogtreecommitdiff
path: root/include/ucontext.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-07-17 15:41:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-07-17 15:41:40 +0200
commit903da45dde43836e35a295226c5b1efccd413c08 (patch)
treef48c4b03530901f72b77a1c960d9df5b71f6c738 /include/ucontext.h
parent0f7c0f87bc60c47d3326583a6678eb74db92586a (diff)
allow to use <sys/ucontext.h>
For architectures without ucontext implementation it is possible to use libucontext with this small adaptation.
Diffstat (limited to 'include/ucontext.h')
-rw-r--r--include/ucontext.h4
1 files changed, 2 insertions, 2 deletions
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. */