CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_H)
CHECK_INCLUDE_FILES(stropts.h HAVE_STROPS_H)
CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL_H)
+CHECK_INCLUDE_FILES(ucontext.h HAVE_UCONTEXT_H)
# Check platform API
CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE)
#cmakedefine HAVE_TANHL 1
#cmakedefine HAVE_TERMIOS_H 1
#cmakedefine HAVE_TIME_H 1
+#cmakedefine HAVE_UCONTEXT_H 1
#cmakedefine HAVE_UNISTD_H 1
#cmakedefine HAVE_VFORK 1
#cmakedefine HAVE_WAIT4 1
#define UNWIND_BACKTRACE_DEPTH 256
#endif
+#ifdef HAVE_UCONTEXT_H
+#include <ucontext.h>
+#endif
+
static void rspamd_worker_ignore_signal (int signo);
/**
* Return worker's control structure by its type