Differential D19303 Diff 54888 devel/boost-libs/files/patch-boost_stacktrace_detail_collect__unwind.ipp
Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-libs/files/patch-boost_stacktrace_detail_collect__unwind.ipp
Expose _Unwind_Backtrace in libcxxrt | Expose _Unwind_Backtrace in libcxxrt | ||||
--- boost/stacktrace/detail/collect_unwind.ipp.orig 2017-09-02 09:56:17 UTC | --- boost/stacktrace/detail/collect_unwind.ipp.orig 2019-02-21 20:58:43 UTC | ||||
+++ boost/stacktrace/detail/collect_unwind.ipp | +++ boost/stacktrace/detail/collect_unwind.ipp | ||||
@@ -14,7 +14,18 @@ | @@ -25,7 +25,18 @@ | ||||
#include <execinfo.h> | |||||
#include <boost/stacktrace/safe_dump_to.hpp> | #include <algorithm> | ||||
#else | |||||
+#ifndef _GNU_SOURCE | +#ifndef _GNU_SOURCE | ||||
+#define _GNU_SOURCE | +#define _GNU_SOURCE | ||||
+#define _GNU_SOURCE_TEMPORARY | +#define _GNU_SOURCE_TEMPORARY | ||||
+#endif | +#endif | ||||
#include <unwind.h> | #include <unwind.h> | ||||
+#ifdef _GNU_SOURCE_TEMPORARY | +#ifdef _GNU_SOURCE_TEMPORARY | ||||
+#undef _GNU_SOURCE | +#undef _GNU_SOURCE | ||||
+#undef _GNU_SOURCE_TEMPORARY | +#undef _GNU_SOURCE_TEMPORARY | ||||
+#endif | +#endif | ||||
+#if !defined(_URC_NO_REASON) && defined(__arm__) && !defined(__ARM_DWARF_EH__) | +#if !defined(_URC_NO_REASON) && defined(__arm__) && !defined(__ARM_DWARF_EH__) | ||||
+#define _URC_NO_REASON _URC_OK | +#define _URC_NO_REASON _URC_OK | ||||
+#endif | +#endif | ||||
#endif | |||||
#include <cstdio> | #include <cstdio> | ||||
#if !defined(_GNU_SOURCE) && !defined(BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED) && !defined(BOOST_WINDOWS) |