Fixes for FreeBSD and other OSes that do not define _GNU_SOURCE but have _Unwind_Backtrace function

This commit is contained in:
Antony Polukhin
2017-08-29 20:27:18 +03:00
parent af78623e8a
commit b5e2058ec5
6 changed files with 21 additions and 2 deletions

View File

@@ -7,5 +7,10 @@
#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
#define BOOST_STACKTRACE_USE_BACKTRACE
#define BOOST_STACKTRACE_LINK
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <boost/stacktrace/detail/frame_unwind.ipp>
#include <boost/stacktrace/safe_dump_to.hpp>