sim: m68hc11: include stdlib.h for prototypes
authorMike Frysinger <vapier@gentoo.org>
Sat, 30 Jan 2021 15:21:15 +0000 (10:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 30 Jan 2021 15:21:15 +0000 (10:21 -0500)
These files use abort() & strtod(), so include stdlib.h for them.

sim/m68hc11/ChangeLog
sim/m68hc11/dv-m68hc11.c
sim/m68hc11/m68hc11_sim.c

index eb1dea331798fe8db6a20b9f97ad640134fe0545..90d73df898a7cdfb9583855c3bf24c39f7b73743 100644 (file)
@@ -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.
index 7fae3ed3137b1aeb2a72c4350c28f233e26ddd44..3ec524a8e07d28f8939104aeaca63b8a48b2d547 100644 (file)
@@ -25,6 +25,7 @@
 #include "sim-options.h"
 #include "hw-base.h"
 #include <limits.h>
+#include <stdlib.h>
 
 /* DEVICE
 
index 517ba17153aafd40e3140adb89f3707da14a6496..8eaa421a68fc5f8a8c30ffcd9b80c07002ac8f1f 100644 (file)
@@ -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,