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 b26da88223f5f52af7f1261b1145a7c6f7d2a783..039e56f7aa0ed7b71933d13c703b06fb1044dbc5 100644 (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
index 319edcf12eb963065a1ca405f8dc6c64fd44d69d..5bcd370e37805f6388b615fea35a98b81e062386 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