From 3d52735bab7e6df662381f51ee00b10e170cd6e9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Jan 2021 20:17:37 -0500 Subject: 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. --- sim/igen/ChangeLog | 4 ++++ sim/igen/gen-icache.c | 1 + sim/igen/igen.c | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sim/igen') diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index b34bcc2..bf2ee3e 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,5 +1,9 @@ 2021-01-04 Mike Frysinger + * gen-icache.c, igen.c: Include stdlib.h. + +2021-01-04 Mike Frysinger + * configure: Regenerate. 2020-07-03 Sebastian Huber diff --git a/sim/igen/gen-icache.c b/sim/igen/gen-icache.c index 11d6135..ce79c74 100644 --- a/sim/igen/gen-icache.c +++ b/sim/igen/gen-icache.c @@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include #include "misc.h" #include "lf.h" diff --git a/sim/igen/igen.c b/sim/igen/igen.c index f2f117f..d0e0da9 100644 --- a/sim/igen/igen.c +++ b/sim/igen/igen.c @@ -19,9 +19,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ - - #include +#include #include "misc.h" #include "lf.h" -- cgit v1.1