aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/igen.c
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/ppc/igen.c
parent9416af6e7d5d421b0c737d7f80afd67ce9926f11 (diff)
downloadgdb-3d52735bab7e6df662381f51ee00b10e170cd6e9.zip
gdb-3d52735bab7e6df662381f51ee00b10e170cd6e9.tar.gz
gdb-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/ppc/igen.c')
-rw-r--r--sim/ppc/igen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c
index 5a1df3e..c036f04 100644
--- a/sim/ppc/igen.c
+++ b/sim/ppc/igen.c
@@ -17,9 +17,8 @@
*/
-
-
#include <getopt.h>
+#include <stdlib.h>
#include "misc.h"
#include "lf.h"