1 #ifdef __APPLE__
2 // ucontext.h is deprecated on macOS, so tests that include it may stop working
3 // someday. We define _XOPEN_SOURCE to keep using ucontext.h for now.
4 #ifdef _STRUCT_UCONTEXT
5 #error incomplete ucontext_t already defined, change #include order
6 #endif
7 #define _XOPEN_SOURCE 700
8 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
9 #endif
10 
11 #include <ucontext.h>
12