aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-09 03:01:05 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-09 08:43:48 -0500
commitf41464416a1744ca0151d61de1a7e405664dd9b7 (patch)
treeb91f7672f311b50b65e43aa6f2dd3407962f5562 /sim
parentb5a4a01af4ef4f5edefacf45dc173f559d09c4b5 (diff)
downloadgdb-f41464416a1744ca0151d61de1a7e405664dd9b7.zip
gdb-f41464416a1744ca0151d61de1a7e405664dd9b7.tar.gz
gdb-f41464416a1744ca0151d61de1a7e405664dd9b7.tar.bz2
sim: pru: fix include ordering with sim-main.h
Make sure config.h is included before C library headers otherwise the later libiberty.h include gets confused about asprintf state leading to warnings like: common/sim-utils.c:330:9: warning: implicit declaration of function 'vasprintf'; did you mean 'xvasprintf'? [-Wimplicit-function-declaration]
Diffstat (limited to 'sim')
-rw-r--r--sim/pru/ChangeLog4
-rw-r--r--sim/pru/sim-main.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/sim/pru/ChangeLog b/sim/pru/ChangeLog
index 4bcb118..0b37812 100644
--- a/sim/pru/ChangeLog
+++ b/sim/pru/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h: Include config.h.
+
2021-01-08 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/pru/sim-main.h b/sim/pru/sim-main.h
index 8233c20..966cacf 100644
--- a/sim/pru/sim-main.h
+++ b/sim/pru/sim-main.h
@@ -19,6 +19,8 @@
#ifndef PRU_SIM_MAIN
#define PRU_SIM_MAIN
+#include "config.h"
+
#include <stdint.h>
#include <stddef.h>
#include "pru.h"