aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-04 20:17:37 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-04 20:17:37 -0500
commit3d52735bab7e6df662381f51ee00b10e170cd6e9 (patch)
tree92883608f3985539924152ceef74cd56f2706999 /sim/arm
parent9416af6e7d5d421b0c737d7f80afd67ce9926f11 (diff)
downloadbinutils-3d52735bab7e6df662381f51ee00b10e170cd6e9.zip
binutils-3d52735bab7e6df662381f51ee00b10e170cd6e9.tar.gz
binutils-3d52735bab7e6df662381f51ee00b10e170cd6e9.tar.bz2
sim: include stdlib.h for atoi()
Make sure the files using atoi() include stdlib.h for its prototype. These files were relying on it being included implicitly by others which isn't guaranteed, and newer toolchains produce warnings.
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/ChangeLog4
-rw-r--r--sim/arm/wrapper.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 75fcec2..9b5b780 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,5 +1,9 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
+ * wrapper.c: Include stdlib.h.
+
+2021-01-04 Mike Frysinger <vapier@gentoo.org>
+
* iwmmxt.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 874e37c..5fc753a 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -23,6 +23,7 @@
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <string.h>
#include <bfd.h>
#include <signal.h>