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/igen | |
parent | 9416af6e7d5d421b0c737d7f80afd67ce9926f11 (diff) | |
download | binutils-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/igen')
-rw-r--r-- | sim/igen/ChangeLog | 4 | ||||
-rw-r--r-- | sim/igen/gen-icache.c | 1 | ||||
-rw-r--r-- | sim/igen/igen.c | 3 |
3 files changed, 6 insertions, 2 deletions
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 <vapier@gentoo.org> + * gen-icache.c, igen.c: Include stdlib.h. + +2021-01-04 Mike Frysinger <vapier@gentoo.org> + * configure: Regenerate. 2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de> 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 <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> #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 <http://www.gnu.org/licenses/>. */ - - #include <getopt.h> +#include <stdlib.h> #include "misc.h" #include "lf.h" |