Browse Source

allow to use <sys/ucontext.h>

For architectures without ucontext implementation it is possible
to use libucontext with this small adaptation.
Waldemar Brodkorb 9 months ago
parent
commit
903da45dde
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/ucontext.h

+ 2 - 2
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.  */