diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-04 20:17:37 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-04 20:17:37 -0500 |
commit | 3d52735bab7e6df662381f51ee00b10e170cd6e9 (patch) | |
tree | 92883608f3985539924152ceef74cd56f2706999 /sim/ppc | |
parent | 9416af6e7d5d421b0c737d7f80afd67ce9926f11 (diff) | |
download | gdb-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')
-rw-r--r-- | sim/ppc/ChangeLog | 4 | ||||
-rw-r--r-- | sim/ppc/gen-icache.c | 1 | ||||
-rw-r--r-- | sim/ppc/igen.c | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 6f0d58d..041e27a 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,9 @@ 2021-01-04 Mike Frysinger <vapier@gentoo.org> + * gen-icache.c, igen.c: Include stdlib.h. + +2021-01-04 Mike Frysinger <vapier@gentoo.org> + * acinclude.m4 (ACX_BUGURL): Change http:// to https://. * configure: Regenerate. diff --git a/sim/ppc/gen-icache.c b/sim/ppc/gen-icache.c index 8acf3fb..eb35e94 100644 --- a/sim/ppc/gen-icache.c +++ b/sim/ppc/gen-icache.c @@ -17,6 +17,7 @@ */ +#include <stdlib.h> #include "misc.h" #include "lf.h" 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" |