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/bfin/machs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/bfin/machs.c') diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c index 9b66f94..8b7b106 100644 --- a/sim/bfin/machs.c +++ b/sim/bfin/machs.c @@ -20,6 +20,8 @@ #include "config.h" +#include + #include "sim-main.h" #include "gdb/sim-bfin.h" #include "bfd.h" -- cgit v1.1