error: 'stack_t' does not name a type
Question
from /[...]/sentry/sentry-native/external/crashpad/client/crashpad_client_linux.cc:15:
/opt/toolchain/ingenic/mips-linux-gnu-ingenic-gcc7.2.0-uclibc-ng.1.0.42-fp64-r5.1.6/mips-linux-uclibc/libc/usr/include/sys/ucontext.h:111:5: error: 'stack_t' does not name a type; did you mean 'clock_t'?
stack_t uc_stack;
^~~~~~~
clock_t
Answer
#include <ucontext.h>