aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-04 22:03:37 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-04 22:04:01 -0400
commit77c0fdb7ff33eb5cbea9f71703eca1557499fc0c (patch)
treefc72994809bc3f69fa09ce794a63a9107cfa01a8 /sim
parent9b1af85c785f050e9c8ce8a30c3c12561d60503c (diff)
downloadgdb-77c0fdb7ff33eb5cbea9f71703eca1557499fc0c.zip
gdb-77c0fdb7ff33eb5cbea9f71703eca1557499fc0c.tar.gz
gdb-77c0fdb7ff33eb5cbea9f71703eca1557499fc0c.tar.bz2
sim: mips: include stdlib.h for memory prototypes
This file uses free() and friends, so include it to fix missing prototype warnings.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog4
-rw-r--r--sim/mips/dv-tx3904sio.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 3301767..c8cf4e2 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,5 +1,9 @@
2021-05-04 Mike Frysinger <vapier@gentoo.org>
+ * dv-tx3904sio.c: Include stdlib.h.
+
+2021-05-04 Mike Frysinger <vapier@gentoo.org>
+
* configure.ac (hw_extra_devices): Inline contents into
SIM_AC_OPTION_HARDWARE and delete.
* configure: Regenerate.
diff --git a/sim/mips/dv-tx3904sio.c b/sim/mips/dv-tx3904sio.c
index 74e6f56..9676344 100644
--- a/sim/mips/dv-tx3904sio.c
+++ b/sim/mips/dv-tx3904sio.c
@@ -24,6 +24,7 @@
#include "dv-sockser.h"
#include "sim-assert.h"
+#include <stdlib.h>
/* DEVICE