mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Changes: http://www.boost.org/users/history/version_1_70_0.html PR: 235956 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D19303
23 lines
571 B
C++
23 lines
571 B
C++
Expose _Unwind_Backtrace in libcxxrt
|
|
|
|
--- boost/stacktrace/detail/collect_unwind.ipp.orig 2019-02-21 20:58:43 UTC
|
|
+++ boost/stacktrace/detail/collect_unwind.ipp
|
|
@@ -25,7 +25,18 @@
|
|
#include <execinfo.h>
|
|
#include <algorithm>
|
|
#else
|
|
+#ifndef _GNU_SOURCE
|
|
+#define _GNU_SOURCE
|
|
+#define _GNU_SOURCE_TEMPORARY
|
|
+#endif
|
|
#include <unwind.h>
|
|
+#ifdef _GNU_SOURCE_TEMPORARY
|
|
+#undef _GNU_SOURCE
|
|
+#undef _GNU_SOURCE_TEMPORARY
|
|
+#endif
|
|
+#if !defined(_URC_NO_REASON) && defined(__arm__) && !defined(__ARM_DWARF_EH__)
|
|
+#define _URC_NO_REASON _URC_OK
|
|
+#endif
|
|
#endif
|
|
#include <cstdio>
|
|
|