[binutils-gdb] sim: m68hc11: include stdlib.h for prototypes
Michael Frysinger
vapier@sourceware.org
Sat Jan 30 18:38:33 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ee64caae5b444e393fa595c621c8c6234ef19c55
commit ee64caae5b444e393fa595c621c8c6234ef19c55
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Jan 30 10:21:15 2021 -0500
sim: m68hc11: include stdlib.h for prototypes
These files use abort() & strtod(), so include stdlib.h for them.
Diff:
---
sim/m68hc11/ChangeLog | 4 ++++
sim/m68hc11/dv-m68hc11.c | 1 +
sim/m68hc11/m68hc11_sim.c | 2 ++
3 files changed, 7 insertions(+)
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index eb1dea33179..90d73df898a 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c
index 7fae3ed3137..3ec524a8e07 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 517ba17153a..8eaa421a68f 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,
More information about the Gdb-cvs
mailing list