From c36af1b4da7efda503da001274ec514b06324a78 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 17 Apr 2018 17:29:27 +0000 Subject: [PATCH] backtrace.c: Include backtrace-supported.h before checking BACKTRACE_USES_MALLOC. * backtrace.c: Include backtrace-supported.h before checking BACKTRACE_USES_MALLOC. From-SVN: r259439 --- libbacktrace/ChangeLog | 5 +++++ libbacktrace/backtrace.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index b26da88223f..039e56f7aa0 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2018-04-17 Ian Lance Taylor + + * backtrace.c: Include backtrace-supported.h before checking + BACKTRACE_USES_MALLOC. + 2018-04-17 Ian Lance Taylor * backtrace.c (backtrace_full): When testing whether we can diff --git a/libbacktrace/backtrace.c b/libbacktrace/backtrace.c index 319edcf12eb..5bcd370e378 100644 --- a/libbacktrace/backtrace.c +++ b/libbacktrace/backtrace.c @@ -35,13 +35,14 @@ POSSIBILITY OF SUCH DAMAGE. */ #include #include +#include "backtrace-supported.h" + #if !BACKTRACE_USES_MALLOC #include #endif #include "unwind.h" #include "backtrace.h" -#include "backtrace-supported.h" #include "internal.h" #ifndef MAP_ANONYMOUS -- 2.30.2