On non-freestanding builds, including <ucontext.h> on an ARM Darwin
system will produce the following error:
In file included from include/libucontext/bits.h:6:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/
usr/include/ucontext.h:51:2: error: The deprecated
ucontext routines require _XOPEN_SOURCE to be defined
Defining this macro on Darwin systems will make the building pass.
(I don't have an ARM Darwin system; this is just a speculative fix from looking at a build log that has been sent to me for a personal project.)
On non-freestanding builds, including
<ucontext.h>
on an ARM Darwin system will produce the following error:Defining this macro on Darwin systems will make the building pass.
(I don't have an ARM Darwin system; this is just a speculative fix from looking at a build log that has been sent to me for a personal project.)