backtrace.c: Include backtrace-supported.h before checking BACKTRACE_USES_MALLOC.
authorIan Lance Taylor <iant@golang.org>
Tue, 17 Apr 2018 17:29:27 +0000 (17:29 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Apr 2018 17:29:27 +0000 (17:29 +0000)
* backtrace.c: Include backtrace-supported.h before checking
BACKTRACE_USES_MALLOC.

From-SVN: r259439

libbacktrace/ChangeLog
libbacktrace/backtrace.c

index b26da88..039e56f 100644 (file)
@@ -1,5 +1,10 @@
 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
        allocate memory, call mmap directly, and munmap the memory.
 
index 319edcf..5bcd370 100644 (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