26 #include <boost/version.hpp>
29 #if BOOST_VERSION / 100 >= 1065 && !defined(__APPLE__)
32 #if defined(__OpenBSD__)
33 #define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
35 #include <boost/stacktrace.hpp>
40 static void segfault_signal_handler(
int signum)
44 ss << boost::stacktrace::stacktrace();
51 ::signal(SIGSEGV, &segfault_signal_handler);
56 out << boost::stacktrace::stacktrace();