aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-30 10:21:15 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-30 10:21:15 -0500
commitee64caae5b444e393fa595c621c8c6234ef19c55 (patch)
tree5c9469aed379ab5f97da2798a0efa594bb41d2e6 /sim
parentd4e3adda1225d29b99f7bc81cc711806ecaacb70 (diff)
downloadgdb-ee64caae5b444e393fa595c621c8c6234ef19c55.zip
gdb-ee64caae5b444e393fa595c621c8c6234ef19c55.tar.gz
gdb-ee64caae5b444e393fa595c621c8c6234ef19c55.tar.bz2
sim: m68hc11: include stdlib.h for prototypes
These files use abort() & strtod(), so include stdlib.h for them.
Diffstat (limited to 'sim')
-rw-r--r--sim/m68hc11/ChangeLog4
-rw-r--r--sim/m68hc11/dv-m68hc11.c1
-rw-r--r--sim/m68hc11/m68hc11_sim.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index eb1dea3..90d73df 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,5 +1,9 @@
2021-01-30 Mike Frysinger <vapier@gentoo.org>
+ * dv-m68hc11.c, m68hc11_sim.c: Include stdlib.h.
+
+2021-01-30 Mike Frysinger <vapier@gentoo.org>
+
* configure.ac (SIM_AC_OPTION_HARDWARE): Inline variables.
* configure: Regenerate.
diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c
index 7fae3ed..3ec524a 100644
--- a/sim/m68hc11/dv-m68hc11.c
+++ b/sim/m68hc11/dv-m68hc11.c
@@ -25,6 +25,7 @@
#include "sim-options.h"
#include "hw-base.h"
#include <limits.h>
+#include <stdlib.h>
/* DEVICE
diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c
index 517ba17..8eaa421 100644
--- a/sim/m68hc11/m68hc11_sim.c
+++ b/sim/m68hc11/m68hc11_sim.c
@@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-module.h"
#include "sim-options.h"
+#include <stdlib.h>
+
enum {
OPTION_CPU_RESET = OPTION_START,
OPTION_EMUL_OS,