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
This commit is contained in:
Ian Lance Taylor 2018-04-17 17:29:27 +00:00 committed by Ian Lance Taylor
parent db051c243c
commit c36af1b4da
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-04-17 Ian Lance Taylor <iant@golang.org>
* backtrace.c: Include backtrace-supported.h before checking
BACKTRACE_USES_MALLOC.
2018-04-17 Ian Lance Taylor <iant@golang.org>
* backtrace.c (backtrace_full): When testing whether we can

View File

@ -35,13 +35,14 @@ POSSIBILITY OF SUCH DAMAGE. */
#include <unistd.h>
#include <sys/types.h>
#include "backtrace-supported.h"
#if !BACKTRACE_USES_MALLOC
#include <sys/mman.h>
#endif
#include "unwind.h"
#include "backtrace.h"
#include "backtrace-supported.h"
#include "internal.h"
#ifndef MAP_ANONYMOUS