ports/devel/boost-libs/files/patch-boost_stacktrace_detail_collect__unwind.ipp
Jan Beich 98eb11b2f0 devel/boost-*: update to 1.65.1
Changes:	http://www.boost.org/users/history/version_1_65_1.html
PR:		218835
Approved by:	maintainer timeout (1.65.1: 2 weeks; 1.65.0: 1 month)
Tested by:	jhibbits (on powerpc64, earlier version)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D11582
2017-09-25 00:08:16 +00:00

23 lines
669 B
C++

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
@@ -14,7 +14,18 @@
#include <boost/stacktrace/safe_dump_to.hpp>
+#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
#include <cstdio>
#if !defined(_GNU_SOURCE) && !defined(BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED) && !defined(BOOST_WINDOWS)